Kdyby/Curl — pull request #15 by hranicka (2014-10-30 19:27:47+00:00)
Title: Request::DOWNLOAD method is preserved in redirect

When I make DOWNLOAD request, follow redirect and get response with Location header, I get an error:
`Kdyby\Curl\InvalidStateException: File '.headers' not readable. in ..../Kdyby/Curl/FileResponse.php:174`

I've solved the problem with preserving Request method in Curl\Request::followRedirect().

Now everything works fine.

---

I didn't write tests because it's impossible do that.