aboutsummaryrefslogtreecommitdiff
path: root/pkg/handler/git/handler.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/handler/git/handler.go')
-rw-r--r--pkg/handler/git/handler.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/handler/git/handler.go b/pkg/handler/git/handler.go
index 61765bb..e409ed7 100644
--- a/pkg/handler/git/handler.go
+++ b/pkg/handler/git/handler.go
@@ -141,7 +141,8 @@ func (g *GitHandler) Multiplex(w http.ResponseWriter, r *http.Request) error {
reader := r.Body
if r.Header.Get("Content-Encoding") == "gzip" {
- reader, err := gzip.NewReader(r.Body)
+ var err error
+ reader, err = gzip.NewReader(r.Body)
if err != nil {
return err
}