From 9468b59b0e64623e76e1e82cd072622725ba4171 Mon Sep 17 00:00:00 2001 From: Tomek Lipski Date: Tue, 5 May 2015 15:43:06 +0200 Subject: [PATCH] default the status to 200 when checking if gzip encoding is possible --- src/ring/middleware/gzip.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ring/middleware/gzip.clj b/src/ring/middleware/gzip.clj index e19d819..0b94ba9 100644 --- a/src/ring/middleware/gzip.clj +++ b/src/ring/middleware/gzip.clj @@ -62,7 +62,7 @@ (defn- supported-response? [resp] (let [{:keys [status headers]} resp] - (and (supported-status? status) + (and (supported-status? (or status 200)) (unencoded-type? headers) (supported-type? resp) (supported-size? resp))))