Don't write the Content-Length header ourselves, WinHttpSendRequest()
authorTor Lillqvist <tml@novell.com>
Tue, 12 Aug 2008 23:40:39 +0000 (23:40 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Tue, 12 Aug 2008 23:40:39 +0000 (23:40 +0000)
commitaf8ebc9e552b6062e916c1bfc3982de8da4340d4
tree96cda0210acdba0c25f1d1cbf26ee5e9764832f3
parent7261372b4534336fbe12d4d5f2aef9460d50bde3
Don't write the Content-Length header ourselves, WinHttpSendRequest()

2008-08-13  Tor Lillqvist  <tml@novell.com>

* win32/gwinhttpfileoutputstream.c
(g_winhttp_file_output_stream_write): Don't write the
Content-Length header ourselves, WinHttpSendRequest() takes care
of that when the dwTotalLength parameter is non-zero. Increment
offset by the number of actual bytes sent, although I wonder if
such a scenario is possible where less than requested would be
sent and accepted by the server without errors.

svn path=/trunk/; revision=7345
gio/ChangeLog
gio/win32/gwinhttpfileoutputstream.c