Prevent the ErrUnsupportedMethod error from being returned up the stack.
It eventually causes the go http library to do a double WriteHeader() which is an error Signed-off-by: Richard Scothern <richard.scothern@gmail.com>
This commit is contained in:
parent
d745c5a2c9
commit
6d46ae5fdb
1 changed files with 1 additions and 0 deletions
|
@ -65,6 +65,7 @@ func (bs *blobServer) ServeBlob(ctx context.Context, w http.ResponseWriter, r *h
|
||||||
}
|
}
|
||||||
|
|
||||||
http.ServeContent(w, r, desc.Digest.String(), time.Time{}, br)
|
http.ServeContent(w, r, desc.Digest.String(), time.Time{}, br)
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Some unexpected error.
|
// Some unexpected error.
|
||||||
|
|
Loading…
Reference in a new issue