Modifying response body

Joe Van Dyk joe at
Wed May 6 19:57:31 MSD 2009

2 questions:
Is it possible to return an empty response?  i.e.
  location /empty-response {
    add_header("some-header", "foo-bar");
    # nothing in response body

Is it possible have the response body be only the unique id set by the
userid module?  i.e.
  userid on;
  location /unique-id {
    # response body should be "uid=<cookie's uid>"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list