Browse code

builder-next: close build context upload on cancel

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>

Tonis Tiigi authored on 2019/08/17 05:39:23
Showing 1 changed files
... ...
@@ -35,6 +35,7 @@ func (h *reqBodyHandler) newRequest(rc io.ReadCloser) (string, func()) {
35 35
 		h.mu.Lock()
36 36
 		delete(h.requests, id)
37 37
 		h.mu.Unlock()
38
+		rc.Close()
38 39
 	}
39 40
 }
40 41