Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
This is an nginx module to strip the served HTML of all newlines (\n and \r characters)
C
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore Added a gitignore file
README updated TODO
TODO updated TODO
config
ngx_http_no_newlines_module.c Just bring the space check under the if conditional

README

This NginX module strips the page of all newlines ('\n', '\r') and extra white-space ('\t' and extra ' ') before serving it. It follow the 'reddit' method of stripping out space everywhere except in areas marked between HTML comments <!--SC_OFF--> and <!--SC_ON-->

If you wish to learn about writting nginx-modules, Evan Miller has written an excellent guide which can be found here: http://www.evanmiller.org/nginx-modules-guide.html
Something went wrong with that request. Please try again.