nghttpx: Fix regression HTTP/2 upgrade does not work

This commit is contained in:
Tatsuhiro Tsujikawa 2015-02-06 00:15:13 +09:00
parent 3904550d5d
commit 2349a03882
1 changed files with 2 additions and 0 deletions

View File

@ -166,6 +166,8 @@ int htp_hdrs_completecb(http_parser *htp) {
return -1; return -1;
} }
downstream->inspect_http1_request();
if (get_config()->client_proxy && if (get_config()->client_proxy &&
downstream->get_request_method() != "CONNECT") { downstream->get_request_method() != "CONNECT") {
// Make sure that request path is an absolute URI. // Make sure that request path is an absolute URI.