<div class="gmail_quote">On Wed, May 6, 2009 at 12:02 PM, Maxim Dounin <span dir="ltr">&lt;<a href="mailto:mdounin@mdounin.ru">mdounin@mdounin.ru</a>&gt;</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>
&gt; 2 questions:<br>
&gt; Is it possible to return an empty response?  i.e.<br>
&gt;   location /empty-response {<br>
&gt;     add_header(&quot;some-header&quot;, &quot;foo-bar&quot;);<br>
&gt;     # nothing in response body<br>
&gt;   }<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">
&gt; Is it possible have the response body be only the unique id set by the<br>
&gt; userid module?  i.e.<br>
&gt;   userid on;<br>
&gt;   location /unique-id {<br>
&gt;     # response body should be &quot;uid=&lt;cookie&#39;s uid&gt;&quot;<br>
&gt;   }<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&#39;m losing a lot of performance.  Is that module for nginx 0.6.x?</div>

<div> </div></div>