| 1024 | } |
| 1025 | |
| 1026 | const char *http_hdr_req_url(const HTTP_HDR_REQ *hh) |
| 1027 | { |
| 1028 | static acl_pthread_key_t key = (acl_pthread_key_t) -1; |
| 1029 | ACL_VSTRING *buf; |
| 1030 | |
| 1031 | buf = acl_pthread_tls_get(&key); |
| 1032 | if (buf == NULL) { |
| 1033 | buf = acl_vstring_alloc(256); |
| 1034 | acl_pthread_tls_set(key, buf, (void (*)(void*)) free_vstring); |
| 1035 | } |
| 1036 | |
| 1037 | acl_vstring_strcpy(buf, hh->host); |
| 1038 | acl_vstring_strcat(buf, acl_vstring_str(hh->url_part)); |
| 1039 | return acl_vstring_str(buf); |
| 1040 | } |
| 1041 | |
| 1042 | int http_hdr_req_range(const HTTP_HDR_REQ *hdr_req, http_off_t *range_from, |
| 1043 | http_off_t *range_to) |
no test coverage detected
searching dependent graphs…