From 664b9bbb670f38c87a3253d41eadd96da57f478e Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Mon, 17 Dec 2001 20:50:53 +0000 Subject: [PATCH] Add a few extra fields to HTTP_GetStdHeaderIndex. --- dlls/wininet/http.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index aa06ff3e52d..9292aa46f23 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -1043,6 +1043,14 @@ INT HTTP_GetStdHeaderIndex(LPCSTR lpszField) index = HTTP_QUERY_EXPIRES; else if (!strcasecmp(lpszField,"Mime-Version")) index = HTTP_QUERY_MIME_VERSION; + else if (!strcasecmp(lpszField,"Pragma")) + index = HTTP_QUERY_PRAGMA; + else if (!strcasecmp(lpszField,"Cache-Control")) + index = HTTP_QUERY_CACHE_CONTROL; + else if (!strcasecmp(lpszField,"Content-Length")) + index = HTTP_QUERY_CONTENT_LENGTH; + else if (!strcasecmp(lpszField,"User-Agent")) + index = HTTP_QUERY_USER_AGENT; else { FIXME("Couldn't find %s in standard header table\n", lpszField);