| 758 | } |
| 759 | |
| 760 | bool http_client::header_update(const char* name, const char* value, |
| 761 | bool force_add /* = true */) |
| 762 | { |
| 763 | HTTP_HDR* hdr = get_http_hdr(); |
| 764 | |
| 765 | if (hdr == NULL) { |
| 766 | return false; |
| 767 | } |
| 768 | |
| 769 | return http_hdr_entry_replace(hdr, name, value, force_add ? 1 : 0) |
| 770 | == 0 ? true : false; |
| 771 | } |
| 772 | |
| 773 | int http_client::header_update(const char* name, const char* match, |
| 774 | const char* to, bool case_sensitive /* = false */) |
no test coverage detected