nghttpx: Fix expect header field handling

This commit is contained in:
Tatsuhiro Tsujikawa 2013-08-29 00:03:26 +09:00
parent 66e5ac03a6
commit 6387d18f23
2 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ int HttpDownstreamConnection::push_request_headers()
}
auto expect = downstream_->get_norm_request_header("expect");
if(expect != end_headers &&
util::strifind((*expect).second.c_str(), "100-continue")) {
!util::strifind((*expect).second.c_str(), "100-continue")) {
hdrs += "Expect: ";
hdrs += (*expect).second;
hdrs += "\r\n";

View File

@ -303,7 +303,7 @@ int SpdyDownstreamConnection::push_request_headers()
auto expect = downstream_->get_norm_request_header("expect");
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).second.c_str();
}