diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-09-08 15:13:42 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-09-11 00:26:17 +0200 |
commit | 02eb6184ad6ba6133382dfe24b45472176df92f7 (patch) | |
tree | 0c18b8dd868fec7eccbe0f028c95da857db9cc2e /lib/http.c | |
parent | 7207aaa69696a5d28fbb628954f74ecbe2df97dc (diff) | |
download | curl-02eb6184ad6ba6133382dfe24b45472176df92f7.tar.gz |
Curl_checkheaders: make it available for IMAP and SMTP too
... not only HTTP uses this now.
Closes #1875
Diffstat (limited to 'lib/http.c')
-rw-r--r-- | lib/http.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/http.c b/lib/http.c index f4a1faac3..e7f6872d5 100644 --- a/lib/http.c +++ b/lib/http.c @@ -173,27 +173,6 @@ CURLcode Curl_http_setup_conn(struct connectdata *conn) } /* - * checkheaders() checks the linked list of custom HTTP headers for a - * particular header (prefix). - * - * Returns a pointer to the first matching header or NULL if none matched. - */ -char *Curl_checkheaders(const struct connectdata *conn, - const char *thisheader) -{ - struct curl_slist *head; - size_t thislen = strlen(thisheader); - struct Curl_easy *data = conn->data; - - for(head = data->set.headers;head; head=head->next) { - if(strncasecompare(head->data, thisheader, thislen)) - return head->data; - } - - return NULL; -} - -/* * checkProxyHeaders() checks the linked list of custom proxy headers * if proxy headers are not available, then it will lookup into http header * link list |