Only copy original request headers when following redirects [fixes #4790]401/head
commit463053faff4b3e4b482714f9848998033d5bd3ef
authorAndrew Coulton <andrew@ingenerator.com>
Thu, 26 Sep 2013 09:51:43 +0000 (26 10:51 +0100)
committerAndrew Coulton <andrew@ingenerator.com>
Thu, 26 Sep 2013 09:51:43 +0000 (26 10:51 +0100)
tree7a838eceb73a51728ebccc832ef77bdce4848b76
parent06c8242ce73abce2a633944cb7b259f9ba861ef1
Only copy original request headers when following redirects [fixes #4790]

When following a redirect, the client should not add NULL headers
from the follow_headers list that were not set on the original
request. This prevents problems when requesting URLs that
include an authorization signature calculated from the request URL
and headers.
classes/Kohana/Request/Client.php
tests/kohana/request/ClientTest.php