Browse Source

[mod_proxy] do not forward Expect: 100-continue

do not forward Expect: 100-continue to backend
since we do not handle HTTP/1.1 100 Continue response
master
Glenn Strauss 1 year ago
parent
commit
346280fed7
  1. 5
      src/mod_proxy.c

5
src/mod_proxy.c

@ -962,6 +962,11 @@ static handler_t proxy_create_env(gw_handler_ctx *gwhctx) {
* outgoing proxy. See also https://httpoxy.org/ */
if (buffer_is_equal_caseless_string(&ds->key, CONST_STR_LEN("Proxy"))) continue;
break;
case 6:
/* Do not forward Expect: 100-continue
* since we do not handle "HTTP/1.1 100 Continue" response */
if (buffer_is_equal_caseless_string(&ds->key, CONST_STR_LEN("Expect"))) continue;
break;
case 0:
continue;
}

Loading…
Cancel
Save