diff options
author | Chris Dostert <chrisdostert@users.noreply.github.com> | 2017-04-10 09:55:18 -0700 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2017-04-10 18:55:18 +0200 |
commit | 3daede53835e8572b2957a016f068781db646567 (patch) | |
tree | 73ceb5e9f1eb99181db655de472bbd8e8540a687 /plumbing/transport/http/common.go | |
parent | 777dcd5647ffb263a8bbf3887232ee207138468a (diff) | |
download | go-git-3daede53835e8572b2957a016f068781db646567.tar.gz |
plumbing: transport, handle 403 in http transport
Diffstat (limited to 'plumbing/transport/http/common.go')
-rw-r--r-- | plumbing/transport/http/common.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plumbing/transport/http/common.go b/plumbing/transport/http/common.go index baad12e..930e8eb 100644 --- a/plumbing/transport/http/common.go +++ b/plumbing/transport/http/common.go @@ -132,7 +132,9 @@ func NewErr(r *http.Response) error { switch r.StatusCode { case http.StatusUnauthorized: - return transport.ErrAuthorizationRequired + return transport.ErrAuthenticationRequired + case http.StatusForbidden: + return transport.ErrAuthorizationFailed case http.StatusNotFound: return transport.ErrRepositoryNotFound } |