<br><br><div><span class="gmail_quote">On 3/20/07, <b class="gmail_sendername">David Reid</b> &lt;<a href="mailto:dreid@dreid.org">dreid@dreid.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Which version of cherrypy are you using?&nbsp;&nbsp;I did an easy_install<br>cherrypy and got 3.0.1 but your code didn&#39;t work on it.&nbsp;&nbsp;wsgiApp is<br>somewhere else now or something.</blockquote><div><br>I&#39;m using CherryPy 
2.2 which I got with TurboGears tgsetup.py.<br>I can try CherryPy 3.0.1.<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>&gt;
<br>There are only 2 places we redirect like this, if we&#39;re a subclass of<br>resource.Resource with addSlash=True and the url didn&#39;t end in a /,<br>and if we&#39;re a static.File attached to a directory and the url didn&#39;t
<br>end in a /.</blockquote><div>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">But WSGIResource does not do either of those things.&nbsp;&nbsp;Which leads me
<br>to believe that perhaps cherrypy is causing the redirect?&nbsp;&nbsp;I don&#39;t<br>know, let me know what cherrypy version you&#39;re using and I&#39;ll try to<br>play with it later.</blockquote><div><br>OK, and I will try to adapt my code for CherryPy 
3.0.1 as well.&nbsp; If<br>the problem goes away with newer code, then I&#39;m fine with it.<br></div><br>It&#39;s almost certainly cherrypy causing the redirect:<br>using the WSGI app from the twisted web2 demo, I don&#39;t see the same kind of problem.
<br><br>I still think this is a good clue:<br>2007-03-20 08:39:48-0700 [HTTPChannel,0,<a href="http://127.0.0.1">127.0.0.1</a>] <a href="http://127.0.0.1">127.0.0.1</a> - - [20/Mar/2007:08:39:48] &quot;GET // HTTP/1.1&quot; 302 97 &quot;&quot; &quot;curl/7.15.1 (i686-suse-linux) libcurl/7.15.1 OpenSSL/0.9.8a zlib/1.2.3 libidn/0.6.0&quot;
<br>2007-03-20 08:39:48-0700 [-] <a href="http://127.0.0.1">127.0.0.1</a> - - [20/Mar/2007:08:39:48 -0700] &quot;GET / HTTP/1.1&quot; 302 97 &quot;-&quot; &quot;curl/7.15.1 (i686-suse-linux) libcurl/7.15.1 OpenSSL/0.9.8a zlib/1.2.3 libidn/0.6.0&quot;
<br><br>Note the &#39;GET //&#39;: I can&#39;t tell if that&#39;s the logging line coming from Twisted or from CherryPy.<br><br>Dave<br></div><br>