Accept Headers Without \r\n Ending in HttpAddRequestHeaders
Robert Shearman
rob at codeweavers.com
Tue Jul 13 16:49:59 CDT 2004
Changelog:
Accept headers without \r\n ending in HttpAddRequestHeaders.
-------------- next part --------------
Index: wine/dlls/wininet/http.c
===================================================================
RCS file: /home/wine/wine/dlls/wininet/http.c,v
retrieving revision 1.65
diff -u -r1.65 http.c
--- wine/dlls/wininet/http.c 4 Jul 2004 00:24:47 -0000 1.65
+++ wine/dlls/wininet/http.c 13 Jul 2004 21:36:38 -0000
@@ -122,16 +122,19 @@
lpszEnd++;
}
- if (*lpszEnd == '\0')
+ if (*lpszStart == '\0')
break;
- *lpszEnd = '\0';
-
+ if (*lpszEnd == '\r')
+ {
+ *lpszEnd = '\0';
+ lpszEnd += 2; /* Jump over \r\n */
+ }
TRACE("interpreting header %s\n", debugstr_w(lpszStart));
if (HTTP_InterpretHttpHeader(lpszStart, field, MAX_FIELD_LEN, value, MAX_FIELD_VALUE_LEN))
bSuccess = HTTP_ProcessHeader(lpwhr, field, value, dwModifier | HTTP_ADDHDR_FLAG_REQ);
- lpszStart = lpszEnd + 2; /* Jump over \0\n */
+ lpszStart = lpszEnd;
} while (bSuccess);
More information about the wine-patches
mailing list