nghttpd: Fix typo :host, which should be host

This commit is contained in:
Tatsuhiro Tsujikawa 2014-12-25 00:49:36 +09:00
parent 7bf5be9c17
commit ab1dd11705
1 changed files with 1 additions and 1 deletions

View File

@ -763,7 +763,7 @@ void prepare_redirect_response(Stream *stream, Http2Handler *hd,
auto scheme = http2::get_unique_header(stream->headers, ":scheme"); auto scheme = http2::get_unique_header(stream->headers, ":scheme");
auto authority = http2::get_unique_header(stream->headers, ":authority"); auto authority = http2::get_unique_header(stream->headers, ":authority");
if (!authority) { if (!authority) {
authority = http2::get_unique_header(stream->headers, ":host"); authority = http2::get_unique_header(stream->headers, "host");
} }
auto redirect_url = scheme->value; auto redirect_url = scheme->value;