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.
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.

0x0mar/ngx_pagespeed,0x0mar/ngx_pagespeed,digideskio/ngx_pagespeed,wanrui/ngx_pagespeed,pagespeed/ngx_pagespeed,pagespeed/ngx_pagespeed,digideskio/ngx_pagespeed,wanrui/ngx_pagespeed