[gnome-online-accounts] httpclient: Don't hard-code "Connection: close" in the request headers
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-online-accounts] httpclient: Don't hard-code "Connection: close" in the request headers
- Date: Sat, 20 Feb 2016 18:57:10 +0000 (UTC)
commit 0f38060f43a3b342ccaabfb76ae9d9f6efd75323
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]