get_destination_from_headers(): Additionally update the request line in proxy format
authorFabian Keil <fk@fabiankeil.de>
Sun, 27 Dec 2015 12:49:29 +0000 (12:49 +0000)
committerFabian Keil <fk@fabiankeil.de>
Sun, 27 Dec 2015 12:49:29 +0000 (12:49 +0000)
commit7cc90f68ad18699fd25d311afc4e6dc48fb92469
treeb4359e0360df2ca7b2fae95e047cf350a7b2e15d
parenta518dea1e45ce14ed5d0e5d1a23de2e8f9c3f5f5
get_destination_from_headers(): Additionally update the request line in proxy format

This makes rewriting intercepted requests more convenient.

Previously it was expected to fail unless $hostport
was being used, but rewrites of intercepted requests
without $hostport failed "the wrong way" and would
result in an out-of-memory message (vanilla host patterns)
or a crash (extended host patterns).

Reported by "Guybrish Threepwood" in #1694.
parsers.c