When encoding the Location url, only encode the query and path
authorreyk <reyk@openbsd.org>
Sun, 21 Jun 2015 13:08:36 +0000 (13:08 +0000)
committerreyk <reyk@openbsd.org>
Sun, 21 Jun 2015 13:08:36 +0000 (13:08 +0000)
commitbf34a23eeffa205d184206d238ae14c61cdc2bca
treea60b9d05f4890fe6452f7176303d94a08c079cc3
parent788fe4e9915e3c7ece78ab0e5b3b9a703c320bc4
When encoding the Location url, only encode the query and path
elements from the user input and not the constants from the
configuration.  This makes it possible to specify chars like '?' in
the uri.

OK Sebastien Marie
usr.sbin/httpd/server_http.c