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

Method remove_conditional_headers

src/proxy/http/HttpTransactHeaders.cc:875–886  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

873}
874
875void
876HttpTransactHeaders::remove_conditional_headers(HTTPHdr *outgoing)
877{
878 if (outgoing->presence(MIME_PRESENCE_IF_MODIFIED_SINCE | MIME_PRESENCE_IF_UNMODIFIED_SINCE | MIME_PRESENCE_IF_MATCH |
879 MIME_PRESENCE_IF_NONE_MATCH)) {
880 outgoing->field_delete(MIME_FIELD_IF_MODIFIED_SINCE, MIME_LEN_IF_MODIFIED_SINCE);
881 outgoing->field_delete(MIME_FIELD_IF_UNMODIFIED_SINCE, MIME_LEN_IF_UNMODIFIED_SINCE);
882 outgoing->field_delete(MIME_FIELD_IF_MATCH, MIME_LEN_IF_MATCH);
883 outgoing->field_delete(MIME_FIELD_IF_NONE_MATCH, MIME_LEN_IF_NONE_MATCH);
884 }
885 // TODO: how about RANGE and IF_RANGE?
886}
887
888void
889HttpTransactHeaders::remove_100_continue_headers(HttpTransact::State *s, HTTPHdr *outgoing)

Callers

nothing calls this directly

Calls 2

presenceMethod · 0.80
field_deleteMethod · 0.80

Tested by

no test coverage detected