[gnome-online-accounts/wip/rishi/owncloud-gssapi: 2/3] httpclient: Don't hard-code "Connection: close" in the request headers



commit 3aa8221cd447f8ca8da0616f10434721b3d374ec
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Feb 15 18:41:40 2016 +0100

    httpclient: Don't hard-code "Connection: close" in the request headers
    
    It has been there since the beginning and I have no idea why I added
    it in the first place. It is preventing libsoup from responding to the
    "WWW-Authenticate: Negotiate" header with a "Authorization: Negotiate"
    response. As far as I can tell, dropping it doesn't cause any
    regressions in existing functionality.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=762097

 src/goabackend/goahttpclient.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/goabackend/goahttpclient.c b/src/goabackend/goahttpclient.c
index 75c06d7..6f87231 100644
--- a/src/goabackend/goahttpclient.c
+++ b/src/goabackend/goahttpclient.c
@@ -1,6 +1,6 @@
 /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
 /*
- * Copyright (C) 2012, 2013, 2014, 2015 Red Hat, Inc.
+ * Copyright (C) 2012, 2013, 2014, 2015, 2016 Red Hat, Inc.
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -236,9 +236,7 @@ goa_http_client_check (GoaHttpClient       *self,
   g_object_unref (logger);
 
   data->accept_ssl_errors = accept_ssl_errors;
-
   data->msg = soup_message_new (SOUP_METHOD_GET, uri);
-  soup_message_headers_append (data->msg->request_headers, "Connection", "close");
 
   if (cancellable != NULL)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]