1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #33363 from tonistiigi/fix-chunked-build

Fix cancelling builder on chunked requests
This commit is contained in:
Sebastiaan van Stijn 2017-05-31 20:18:35 +02:00 committed by GitHub
commit 7ea0d1ecc6

View file

@ -41,6 +41,7 @@ func Detect(config backend.BuildConfig) (remote builder.Source, dockerfile *pars
} }
func newArchiveRemote(rc io.ReadCloser, dockerfilePath string) (builder.Source, *parser.Result, error) { func newArchiveRemote(rc io.ReadCloser, dockerfilePath string) (builder.Source, *parser.Result, error) {
defer rc.Close()
c, err := MakeTarSumContext(rc) c, err := MakeTarSumContext(rc)
if err != nil { if err != nil {
return nil, nil, err return nil, nil, err