summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authorBrian M. Carlson <sandals@crustytoothpaste.net>2013-10-31 02:36:51 -0400
committerJunio C Hamano <gitster@pobox.com>2013-10-31 10:13:40 -0700
commitc80d96ca0c3cf948c5062bf6591a46c625620b6d (patch)
treef37dbe101264374be04dc169a1c86a7143177f56 /http.c
parent3a347ed70727cdcb447040705b4128304c0244e3 (diff)
downloadgit-c80d96ca0c3cf948c5062bf6591a46c625620b6d.tar.gz
remote-curl: fix large pushes with GSSAPIbc/http-100-continue
Due to an interaction between the way libcurl handles GSSAPI authentication over HTTP and the way git uses libcurl, large pushes (those over http.postBuffer bytes) would fail due to an authentication failure requiring a rewind of the curl buffer. Such a rewind was not possible because the data did not fit into the entire buffer. Enable the use of the Expect: 100-continue header for large requests where the server offers GSSAPI authentication to avoid this issue, since the request would otherwise fail. This allows git to get the authentication data right before sending the pack contents. Existing cases where pushes would succeed, including small requests using GSSAPI, still disable the use of 100 Continue, as it causes problems for some remote HTTP implementations (servers and proxies). Signed-off-by: Brian M. Carlson <sandals@crustytoothpaste.net> Signed-off-by: Jeff King <peff@peff.net>
Diffstat (limited to 'http.c')
0 files changed, 0 insertions, 0 deletions