| 73 | } |
| 74 | |
| 75 | static void __hdr_reset(HTTP_HDR_REQ *hh, int clear_cookies) |
| 76 | { |
| 77 | hh->port = 80; |
| 78 | hh->method[0] = 0; |
| 79 | hh->host[0] = 0; |
| 80 | hh->flag = 0; |
| 81 | |
| 82 | if (hh->url_part) { |
| 83 | ACL_VSTRING_RESET(hh->url_part); |
| 84 | ACL_VSTRING_TERMINATE(hh->url_part); |
| 85 | } |
| 86 | |
| 87 | if (hh->url_path) { |
| 88 | ACL_VSTRING_RESET(hh->url_path); |
| 89 | ACL_VSTRING_TERMINATE(hh->url_path); |
| 90 | } |
| 91 | |
| 92 | if (hh->url_params) { |
| 93 | ACL_VSTRING_RESET(hh->url_params); |
| 94 | ACL_VSTRING_TERMINATE(hh->url_params); |
| 95 | } |
| 96 | |
| 97 | if (hh->file_path) { |
| 98 | ACL_VSTRING_RESET(hh->file_path); |
| 99 | ACL_VSTRING_TERMINATE(hh->file_path); |
| 100 | } |
| 101 | |
| 102 | if (hh->params_table) { |
| 103 | acl_htable_reset(hh->params_table, __request_args_free_fn); |
| 104 | } |
| 105 | |
| 106 | if (clear_cookies && hh->cookies_table) { |
| 107 | acl_htable_reset(hh->cookies_table, __cookies_args_free_fn); |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | static void thread_cache_free(ACL_ARRAY *pool) |
| 112 | { |
no test coverage detected
searching dependent graphs…