builder-next: close build context upload on cancel

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit 2c2cd9b86a)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Tonis Tiigi 2019-08-16 13:39:23 -07:00 committed by Sebastiaan van Stijn
parent 9077436e6e
commit c0fd6556f2
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -35,6 +35,7 @@ func (h *reqBodyHandler) newRequest(rc io.ReadCloser) (string, func()) {
h.mu.Lock()
delete(h.requests, id)
h.mu.Unlock()
rc.Close()
}
}