flysystem-http
flysystem-http copied to clipboard
An HTTP adapter for Flysystem.
`stream_context_set_default` in `HttpAdapter::head()` doesn't reset http method 'HEAD', once it is set. This leaves later calls to file_get_contents() without a context with this method. In our case, this confuses other...
Fixes #3 by not un-escaping already escaped slashes.
The protected method `buildUrl` does two things: 1. Replace already encoded slashes (`%2F`) with `/`. 2. Replace unencoded whitespace (` `) with `%20`. While step two is correct to "fix"...
Just in case if some one is interested I added a provider and driver for Lumen which can be found here. https://github.com/aftabnaveed/narwhal-twistor-flysystem