pagespeed/ngx_pagespeed — pull request #17 by jeffkaufman (2012-11-01 20:39:22+00:00)
Title: Finalize properly on errors; don't rewrite error responses.

If we have an error we need to finalize with NGX_HTTP_INTERNAL_SERVER_ERROR not NGX_ERROR, but fixing that turned up another bug where we were rewriting error responses, opening us up to infinitely recursive rewrites.