Merge pull request #446 from thaJeztah/19.03_backport_ctx_upload_cancel

[19.03 backport] builder-next: close build context upload on cancel
This commit is contained in:
Sebastiaan van Stijn 2020-01-23 20:22:41 +01:00 committed by GitHub
commit 60220a48b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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()
}
}