feat(server): Apply GZIP compression to all image layers

This fixes #62
This commit is contained in:
Vincent Ambo 2019-10-11 01:28:38 +01:00 committed by Vincent Ambo
parent bf2718cebb
commit 0693e371d6
4 changed files with 15 additions and 9 deletions

View file

@ -270,7 +270,7 @@ func prepareLayers(ctx context.Context, s *State, image *Image, result *ImageRes
} else {
lh := l.Hash()
lw := func(w io.Writer) error {
return tarStorePaths(&l, w)
return packStorePaths(&l, w)
}
entry, err := uploadHashLayer(ctx, s, lh, lw)