MCPcopy Create free account
hub / github.com/apache/trafficserver / remove_100_continue_headers

Method remove_100_continue_headers

src/proxy/http/HttpTransactHeaders.cc:888–897  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

886}
887
888void
889HttpTransactHeaders::remove_100_continue_headers(HttpTransact::State *s, HTTPHdr *outgoing)
890{
891 int len = 0;
892 const char *expect = s->hdr_info.client_request.value_get(MIME_FIELD_EXPECT, MIME_LEN_EXPECT, &len);
893
894 if ((len == HTTP_LEN_100_CONTINUE) && (strncasecmp(expect, HTTP_VALUE_100_CONTINUE, HTTP_LEN_100_CONTINUE) == 0)) {
895 outgoing->field_delete(MIME_FIELD_EXPECT, MIME_LEN_EXPECT);
896 }
897}
898
899////////////////////////////////////////////////////////////////////////
900// Deal with lame-o servers by removing the host name from the url.

Callers

nothing calls this directly

Calls 2

field_deleteMethod · 0.80
value_getMethod · 0.45

Tested by

no test coverage detected