From 1bb58b5b481ba39992c40ed3cef9e93bfd8e4a3b Mon Sep 17 00:00:00 2001 From: Stefan Becker Date: Thu, 10 Jul 2014 19:16:00 +0300 Subject: [PATCH] Fix #259: HTML response to EWS autodiscover triggers libxml2 assert Add "Accept: text/xml" header to EWS POST request to reject all other content types in response. --- src/core/sipe-ews-autodiscover.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/sipe-ews-autodiscover.c b/src/core/sipe-ews-autodiscover.c index c5f922e6..3e835b9f 100644 --- a/src/core/sipe-ews-autodiscover.c +++ b/src/core/sipe-ews-autodiscover.c @@ -239,7 +239,7 @@ static gboolean sipe_ews_autodiscover_url(struct sipe_core_private *sipe_private sea->request = sipe_http_request_post(sipe_private, url, - NULL, + "Accept: text/xml\r\n", body, "text/xml", sipe_ews_autodiscover_response, -- 2.11.4.GIT