| 4915 | } |
| 4916 | |
| 4917 | void |
| 4918 | HttpTransact::set_header_for_transform(State *s, HTTPHdr *base_header) |
| 4919 | { |
| 4920 | s->hdr_info.transform_response.create(HTTP_TYPE_RESPONSE); |
| 4921 | s->hdr_info.transform_response.copy(base_header); |
| 4922 | |
| 4923 | // Nuke the content length since 1) the transform will probably |
| 4924 | // change it. 2) it would only be valid for the first transform |
| 4925 | // in the chain |
| 4926 | s->hdr_info.transform_response.field_delete(MIME_FIELD_CONTENT_LENGTH, MIME_LEN_CONTENT_LENGTH); |
| 4927 | |
| 4928 | dump_header(dbg_ctl_http_hdrs, &s->hdr_info.transform_response, s->state_machine_id(), "Header To Transform"); |
| 4929 | } |
| 4930 | |
| 4931 | void |
| 4932 | HttpTransact::set_headers_for_cache_write(State *s, HTTPInfo *cache_info, HTTPHdr *request, HTTPHdr *response) |
nothing calls this directly
no test coverage detected