Commit Graph

3 Commits

Author SHA1 Message Date
brian m. carlson
bdacae1fbe
lfshttp: support http.version
There are some servers that cannot speak HTTP/2 in all cases and demand
to fall back to HTTP/1.1 with a HTTP_1_1_REQUIRED.  Notably, this
happens with IIS 10 when using NTLM.  Go's HTTP library doesn't seem to
like this response and aborts the transfer, leading to a failure.

Fortunately, Git has an option (http.version) to control the protocol
used when speaking HTTP to a remote server.  Implement this option to
allow users to set the protocol to use when speaking HTTP and work
around these broken servers.
2019-10-29 19:47:20 +00:00
Lilah Ingvaldsen
a0a2815d40 Add HTTP/2 support to LFS client
This commit configures the internal client we use for all HTTP
requests in `git-lfs` to use the HTTP/2 protocol if supported by
the server.
2019-08-27 10:24:20 -07:00
Preben Ingvaldsen
d101bdb605 lfsapi: extract new lfshttp package
Extract more basic http-related functionality out of lfsapi and
into a new package, lfshttp. Everything is currently functional
aside from authorization.
2018-09-11 14:51:29 -07:00