ring-gzip
ring-gzip copied to clipboard
Ring middleware for gzip compression.
It is technically possible to return nil headers from a Ring response which will result in a NPE without this change.
There are many other extensions which could be added to [`supported-type?`](https://github.com/bertrandk/ring-gzip/blob/master/src/ring/middleware/gzip.clj#L49), for example .svg and .txt. Could arbitrary types be added as settings somewhere? Or at least a more extensive...
Hi, This patch fixes problem with handling multiple Accept headers. Ring spec states that multiple headers are represented as vectors, thus accepts-gzip? function was throwing ClassCastException in some situations. Note...
Middleware that returns pre-compressed files (if available) for supported user-agents. Inspired by the NGiNX module: http://nginx.org/en/docs/http/ngx_http_gzip_static_module.html
To my best knowledge, if no status is provided, Ring assumes it is 200 (at least with ring-jetty-adapter).