On Dec 30, 2006, at 4:41 PM, Robert Leftwich wrote:
After upgrading, some of the links issue 301 status codes to
exactly the same url which causes the browser to report redirection
limit errors or similar. Others are working as expected. The common
link seems to be that the links use routes with '*url'
e.g. for the route:
map.connect('philosophy', 'philosophy/:subsection/*url',
controller='content', action='view', subsection='overview',
section='philosophy', url='')
LiveHTTPHeaders reports:
http://localhost:8000/philosophy/overview/
GET /philosophy/overview/ HTTP/1.1
Host: localhost:8000
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8)
Gecko/20061115
Ubuntu/dapper-security Firefox/1.5.0.8
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/
plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-au,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: UTF-8,*
Keep-Alive: 300
Connection: keep-alive
Referer: http://localhost:8000/
HTTP/1.x 301 Moved Permanently
Server: PasteWSGIServer/0.5 Python/2.4.3
Date: Sat, 30 Dec 2006 23:46:20 GMT
Location: http://localhost:8000/philosophy/overview/
Content-Type: text/html
Connection: close
Anyone else seeing this?
I don't know of anything in Pylons or Paste that sends 301s except
paste.urlparser. redirect_to sends 302s.
So I'm inclined to suggest trying Paste 1.0.1 to see if that affects
this problem (although it might not work completely with Pylons 0.9.4).
Does the 301 response include a body? Is this a Windows server?
--
Philip Jenvey
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---