Commit Graph

8 Commits

Author SHA1 Message Date
Carlos Martín Nieto 22da146353 http: set the proxy from the user-given options 2017-07-09 11:41:57 +02:00
Carlos Martín Nieto c5e6dc298e http: correct EOF from stream and do send out our buffered data 2017-07-09 11:41:57 +02:00
Carlos Martín Nieto 2aa2ae5150 fixup! http: call the credentials callback when facing a 401 2017-07-09 11:41:57 +02:00
Carlos Martín Nieto 1339ad1e71 http: add casts because Go doesn't believe in const 2017-07-09 11:41:57 +02:00
Carlos Martín Nieto e2eda97316 http: call the credentials callback when facing a 401
The test for now just tests that we can handle returning a `GIT_EUSER` if the
caller decides to abort.
2017-07-09 11:41:57 +02:00
Carlos Martín Nieto e80ae1125a fixup! Add a managed HTTP(S) transport implementation 2017-07-09 11:41:57 +02:00
Carlos Martín Nieto c726f932db http: use an environment-provided proxy
We currently cannot ask the transport for its proxy settings, so for now we'll
use the one from the environment.
2017-07-09 11:41:57 +02:00
Carlos Martín Nieto 1be680fdf0 Add a managed HTTP(S) transport implementation
This implements a "smart subtransport" which lets us implement just the I/O
portion and leave the Git Smart Protocol logic in the library.
2017-07-09 11:41:57 +02:00