| 873 | } |
| 874 | |
| 875 | void |
| 876 | HttpTransactHeaders::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 | |
| 888 | void |
| 889 | HttpTransactHeaders::remove_100_continue_headers(HttpTransact::State *s, HTTPHdr *outgoing) |
nothing calls this directly
no test coverage detected