From 1fa0e443e356af0d544e2315790fbb36ef500db3 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Tue, 19 Feb 2008 00:20:50 +0100 Subject: [PATCH] wininet/tests: Don't include the trailing '\0' in dwHeadersLength otherwise HttpSendRequestEx() sends it too which some servers object to. --- dlls/wininet/tests/http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wininet/tests/http.c b/dlls/wininet/tests/http.c index 4aed85d8f69..fb561c4e3a8 100644 --- a/dlls/wininet/tests/http.c +++ b/dlls/wininet/tests/http.c @@ -894,8 +894,8 @@ static void HttpSendRequestEx_test(void) BufferIn.dwStructSize = sizeof( INTERNET_BUFFERS); BufferIn.Next = (LPINTERNET_BUFFERS)0xdeadcab; BufferIn.lpcszHeader = szContentType; - BufferIn.dwHeadersLength = sizeof(szContentType); - BufferIn.dwHeadersTotal = sizeof(szContentType); + BufferIn.dwHeadersLength = sizeof(szContentType)-1; + BufferIn.dwHeadersTotal = sizeof(szContentType)-1; BufferIn.lpvBuffer = szPostData; BufferIn.dwBufferLength = 3; BufferIn.dwBufferTotal = sizeof(szPostData)-1; -- 2.11.4.GIT