summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-03-09 13:53:16 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2019-06-10 19:58:22 +0100
commit1071852653c55dbf9729065f62cb9a7aab51a39a (patch)
treea2f9311d6a0ed63282f1eceff2555d342eb52c96
parent3192e3c970f490164852dd76f928b753f821e40d (diff)
downloadlibgit2-1071852653c55dbf9729065f62cb9a7aab51a39a.tar.gz
http: don't reset replay count after connection
A "connection" to a server is transient, and we may reconnect to a server in the midst of authentication failures (if the remote indicates that we should, via `Connection: close`) or in a redirect.
-rw-r--r--src/transports/http.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/transports/http.c b/src/transports/http.c
index 745da9252..213c6511f 100644
--- a/src/transports/http.c
+++ b/src/transports/http.c
@@ -1044,7 +1044,6 @@ static int http_connect(http_subtransport *t)
t->proxy.stream = proxy_stream;
t->server.stream = stream;
t->connected = 1;
- t->replay_count = 0;
return 0;
on_error: