nghttpx: Fix expect header field handling
This commit is contained in:
parent
66e5ac03a6
commit
6387d18f23
|
@ -152,7 +152,7 @@ int HttpDownstreamConnection::push_request_headers()
|
||||||
}
|
}
|
||||||
auto expect = downstream_->get_norm_request_header("expect");
|
auto expect = downstream_->get_norm_request_header("expect");
|
||||||
if(expect != end_headers &&
|
if(expect != end_headers &&
|
||||||
util::strifind((*expect).second.c_str(), "100-continue")) {
|
!util::strifind((*expect).second.c_str(), "100-continue")) {
|
||||||
hdrs += "Expect: ";
|
hdrs += "Expect: ";
|
||||||
hdrs += (*expect).second;
|
hdrs += (*expect).second;
|
||||||
hdrs += "\r\n";
|
hdrs += "\r\n";
|
||||||
|
|
|
@ -303,7 +303,7 @@ int SpdyDownstreamConnection::push_request_headers()
|
||||||
|
|
||||||
auto expect = downstream_->get_norm_request_header("expect");
|
auto expect = downstream_->get_norm_request_header("expect");
|
||||||
if(expect != end_headers &&
|
if(expect != end_headers &&
|
||||||
util::strifind((*expect).second.c_str(), "100-continue")) {
|
!util::strifind((*expect).second.c_str(), "100-continue")) {
|
||||||
nv[hdidx++] = "expect";
|
nv[hdidx++] = "expect";
|
||||||
nv[hdidx++] = (*expect).second.c_str();
|
nv[hdidx++] = (*expect).second.c_str();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue