From ab1dd11705a25ae492a7124f10439cbbfa1e0113 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 25 Dec 2014 00:49:36 +0900 Subject: [PATCH] nghttpd: Fix typo :host, which should be host --- src/HttpServer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HttpServer.cc b/src/HttpServer.cc index 1bc0b12a..7f428f2b 100644 --- a/src/HttpServer.cc +++ b/src/HttpServer.cc @@ -763,7 +763,7 @@ void prepare_redirect_response(Stream *stream, Http2Handler *hd, auto scheme = http2::get_unique_header(stream->headers, ":scheme"); auto authority = http2::get_unique_header(stream->headers, ":authority"); if (!authority) { - authority = http2::get_unique_header(stream->headers, ":host"); + authority = http2::get_unique_header(stream->headers, "host"); } auto redirect_url = scheme->value;