bjuergens / http_log_proxy

GNU General Public License v3.0
1 stars 0 forks source link

bugfix: body sometimes empty #1

Open bjuergens opened 10 months ago

bjuergens commented 10 months ago

sometimes the body stays empty.

this can be fixed with

'''

  EXTRA_DIRECTIVES_SERVER: |
    set $$req_body "";
    # workaround for nginx-feature, where $$request_body is sometimes empty
    rewrite_by_lua_block {
        ngx.var.req_body = ngx.req.get_body_data();
    }

'''

source:

--> todo: include this in the default template for the server block.