Hi All,<br><br>I've written a module to strip whitespace from text served by nginx in order to reduce bandwidth consumed. I'm currently testing my module on a staging server with nginx 0.7.67. However, since this is the first nginx-module that I've written, I would be grateful if someone could review my code and point out any mistakes I might have made from ignorance/inexperience.<br>
<br>The code for my module is at <a href="https://github.com/vedang/nginx-nonewlines">https://github.com/vedang/nginx-nonewlines</a>. I have based it on a function used by reddit, the code for which can be found here: <a href="https://github.com/reddit/reddit/blob/master/r2/r2/lib/c/filters.c#L216">https://github.com/reddit/reddit/blob/master/r2/r2/lib/c/filters.c#L216</a>. Any suggestions would be highly welcome. Thanks!<br>
<br><br>--<br>Unix is simple. It takes a genius to understand it's simplicity. - Anon<br>People think it must be fun to be a super genius, but they don't realize how hard it is to put up with all the idiots in the world. - Calvin.<br>
<br>Cheers,<br>Vedang.<br><br>Software Developer,<br>Infinitely Beta.<br><a href="http://twitter.com/vedang">http://twitter.com/vedang</a><br><a href="http://vedang.me">http://vedang.me</a><br>