Commits

Laurence Rowe  committed bf4d14f

Skip transform when there is no content (e.g. a proxied redirect)

  • Participants
  • Parent commits aed89f1

Comments (0)

Files changed (1)

File src/http/modules/ngx_http_xslt_filter_module.c

         return ngx_http_next_body_filter(r, in);
     }
 
+    if (r->headers_out.content_length_n == 0) {
+        return ngx_http_xslt_send(r, ctx, in->buf);
+    }
+
     for (cl = in; cl; cl = cl->next) {
 
         if (ngx_http_xslt_add_chunk(r, ctx, cl->buf) != NGX_OK) {