Use soup_message_headers_replace(), not soup_message_headers_append(),
authorDan Winship <danw@src.gnome.org>
Mon, 28 Jan 2008 17:55:06 +0000 (17:55 +0000)
committerDan Winship <danw@src.gnome.org>
Mon, 28 Jan 2008 17:55:06 +0000 (17:55 +0000)
commit39e8bda904e79a4638c698d3ead44486198a8517
tree5c8a4839d97c0b8c293a314538fdb749e9325447
parentd6aac27c28d07f4a0d0875819fd41eae048f7c26
Use soup_message_headers_replace(), not soup_message_headers_append(),

* libsoup/soup-message.c (soup_message_set_auth)
(soup_message_set_proxy_auth): Use soup_message_headers_replace(),
not soup_message_headers_append(), since only a single
Authorization/Proxy-Authorization header is allowed. #512517.

* libsoup/soup-auth-manager-ntlm.c (ntlm_request_started): Don't
set an NTLM Authorization header if the message already has a
Basic or Digest one.

* tests/ntlm-test.c: Add some Basic auth and mixed NTLM/Basic auth
tests

svn path=/trunk/; revision=1059
ChangeLog
libsoup/soup-auth-manager-ntlm.c
libsoup/soup-message.c
tests/ntlm-test.c