diff options
author | Nick Mathewson <nickm@torproject.org> | 2009-07-28 19:41:57 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2009-07-28 19:41:57 +0000 |
commit | 72ea534f8e0eb217695035b549f734eed1695d9e (patch) | |
tree | 9faa78e259810af73b7c5657d1b1890974ffd549 /http.c | |
parent | a826a75800ce614a06ae53ddb95c54ccaf2f51d2 (diff) | |
download | libevent-72ea534f8e0eb217695035b549f734eed1695d9e.tar.gz |
Export evutil_str[n]casecmp as evutil_ascii_str[n]casecmp.
svn:r1387
Diffstat (limited to 'http.c')
-rw-r--r-- | http.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -418,10 +418,10 @@ evhttp_is_connection_close(int flags, struct evkeyvalq* headers) if (flags & EVHTTP_PROXY_REQUEST) { /* proxy connection */ const char *connection = evhttp_find_header(headers, "Proxy-Connection"); - return (connection == NULL || evutil_strcasecmp(connection, "keep-alive") != 0); + return (connection == NULL || evutil_ascii_strcasecmp(connection, "keep-alive") != 0); } else { const char *connection = evhttp_find_header(headers, "Connection"); - return (connection != NULL && evutil_strcasecmp(connection, "close") == 0); + return (connection != NULL && evutil_ascii_strcasecmp(connection, "close") == 0); } } @@ -430,7 +430,7 @@ evhttp_is_connection_keepalive(struct evkeyvalq* headers) { const char *connection = evhttp_find_header(headers, "Connection"); return (connection != NULL - && evutil_strncasecmp(connection, "keep-alive", 10) == 0); + && evutil_ascii_strncasecmp(connection, "keep-alive", 10) == 0); } static void @@ -1325,7 +1325,7 @@ evhttp_find_header(const struct evkeyvalq *headers, const char *key) struct evkeyval *header; TAILQ_FOREACH(header, headers, next) { - if (evutil_strcasecmp(header->key, key) == 0) + if (evutil_ascii_strcasecmp(header->key, key) == 0) return (header->value); } @@ -1358,7 +1358,7 @@ evhttp_remove_header(struct evkeyvalq *headers, const char *key) struct evkeyval *header; TAILQ_FOREACH(header, headers, next) { - if (evutil_strcasecmp(header->key, key) == 0) + if (evutil_ascii_strcasecmp(header->key, key) == 0) break; } @@ -1554,7 +1554,7 @@ evhttp_get_body_length(struct evhttp_request *req) if (content_length == NULL && connection == NULL) req->ntoread = -1; else if (content_length == NULL && - evutil_strcasecmp(connection, "Close") != 0) { + evutil_ascii_strcasecmp(connection, "Close") != 0) { /* Bad combination, we don't know when it will end */ event_warnx("%s: we got no content length, but the " "server wants to keep the connection open: %s.", @@ -1593,7 +1593,7 @@ evhttp_get_body(struct evhttp_connection *evcon, struct evhttp_request *req) } evcon->state = EVCON_READING_BODY; xfer_enc = evhttp_find_header(req->input_headers, "Transfer-Encoding"); - if (xfer_enc != NULL && evutil_strcasecmp(xfer_enc, "chunked") == 0) { + if (xfer_enc != NULL && evutil_ascii_strcasecmp(xfer_enc, "chunked") == 0) { req->chunked = 1; req->ntoread = -1; } else { |