aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/transport/internal/common/common.go
diff options
context:
space:
mode:
authorAntonio Navarro Perez <antnavper@gmail.com>2017-01-25 00:30:09 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2017-01-25 00:30:09 +0100
commitdc45de29f87a43078356a5be4c4b5aa24f626ee0 (patch)
treea36e94fedc5d82155c67857f8e8a8632fb15ff1e /plumbing/transport/internal/common/common.go
parente549c1819773fd8ab302ecd1b7650c25aafaba43 (diff)
downloadgo-git-dc45de29f87a43078356a5be4c4b5aa24f626ee0.tar.gz
transport/http: fix partial request with haves. Fix #216. (#221)
Diffstat (limited to 'plumbing/transport/internal/common/common.go')
-rw-r--r--plumbing/transport/internal/common/common.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/transport/internal/common/common.go b/plumbing/transport/internal/common/common.go
index 2285e26..b459198 100644
--- a/plumbing/transport/internal/common/common.go
+++ b/plumbing/transport/internal/common/common.go
@@ -371,7 +371,7 @@ func uploadPack(w io.WriteCloser, r io.Reader, req *packp.UploadPackRequest) err
return fmt.Errorf("sending upload-req message: %s", err)
}
- if err := req.UploadHaves.Encode(w); err != nil {
+ if err := req.UploadHaves.Encode(w, true); err != nil {
return fmt.Errorf("sending haves message: %s", err)
}