aboutsummaryrefslogtreecommitdiffhomepage
path: root/http
diff options
context:
space:
mode:
authorGravatar Frédéric Guillot <fred@miniflux.net>2018-06-19 20:21:24 -0700
committerGravatar Frédéric Guillot <fred@miniflux.net>2018-06-19 20:21:24 -0700
commitb5c317f971f4d2b85127e6730ea52866b004e694 (patch)
tree731a7c63358162dfa5fd0cb6823315d8620972cd /http
parent7914261437305c3eb2ad2f1c750be91d95af718c (diff)
Disable keep-alive for HTTP client
Diffstat (limited to 'http')
-rw-r--r--http/client/client.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/http/client/client.go b/http/client/client.go
index 0ec1603..60ebbc7 100644
--- a/http/client/client.go
+++ b/http/client/client.go
@@ -224,6 +224,7 @@ func (c *Client) buildHeaders() http.Header {
headers.Add("Authorization", c.authorizationHeader)
}
+ headers.Add("Connection", "close")
return headers
}