aboutsummaryrefslogtreecommitdiff
path: root/pkg/ext
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/ext')
-rw-r--r--pkg/ext/compression.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkg/ext/compression.go b/pkg/ext/compression.go
index 57ad49a..9e933ef 100644
--- a/pkg/ext/compression.go
+++ b/pkg/ext/compression.go
@@ -26,6 +26,13 @@ type CompressionResponseWriter struct {
func Compress(next http.HandlerFunc) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
+
+ // TODO: hand this better
+ if strings.HasSuffix(r.URL.Path, ".tar.gz") {
+ next(w, r)
+ return
+ }
+
if accept, ok := r.Header["Accept-Encoding"]; ok {
if compress, algo := GetCompressionWriter(u.FirstOrZero(accept), w); algo != "" {
defer compress.Close()