<div class="gmail_quote">On Wed, May 6, 2009 at 12:02 PM, Maxim Dounin <span dir="ltr"><<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello!<br>
<div class="im"><br>
On Wed, May 06, 2009 at 08:57:31AM -0700, Joe Van Dyk wrote:<br>
<br>
> 2 questions:<br>
> Is it possible to return an empty response? Â i.e.<br>
> Â location /empty-response {<br>
> Â Â add_header("some-header", "foo-bar");<br>
> Â Â # nothing in response body<br>
> Â }<br>
<br>
</div>Something like<br>
<br>
  location /empty-response {<br>
    add_header ...;<br>
    return 204;<br>
  }<br>
<br>
should work for http-complaint applications (but not some popular<br>
browsers).</blockquote><div><br></div><div>I earlier tried returning a 200 and it seemed to hang on me. Â Maybe browser problem?</div><div>Â </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">
> Is it possible have the response body be only the unique id set by the<br>
> userid module? Â i.e.<br>
> Â userid on;<br>
> Â location /unique-id {<br>
> Â Â # response body should be "uid=<cookie's uid>"<br>
> Â }<br>
<br>
</div>Either use embedded perl or try http_response module by Kirill<br>
Korinskiy (<a href="http://catap.ru/downloads/nginx/ngx_http_response-0.3.tar.gz" target="_blank">http://catap.ru/downloads/nginx/ngx_http_response-0.3.tar.gz</a>).</blockquote><div><br></div><div>Thanks. Â I think I will just proxy the request to a Sinatra app, even though I'm losing a lot of performance. Â Is that module for nginx 0.6.x?</div>
<div>Â </div></div>