Most browsers seem to append '/' to requests - tested with Chrome and curl. Due to the regex change in commit e6b7b7346e on line 426 of rewrite.py, the following matches fail and return HTTP 400 codes (check on lines 472-476):
regex_url.match('/')
regex_url.match('')
<_sre.SRE_Match object at 0x19b9a40>
regex_url.match('/admin/')
regex_url.match('/admin')
<_sre.SRE_Match object at 0x19b9ad0>
Reverting the regex to end with /?$) on line 426 fixes this.
From gr...@jingojango.net on February 04, 2011 17:42:17
Most browsers seem to append '/' to requests - tested with Chrome and curl. Due to the regex change in commit e6b7b7346e on line 426 of rewrite.py, the following matches fail and return HTTP 400 codes (check on lines 472-476):
Reverting the regex to end with /?$) on line 426 fixes this.
Original issue: http://code.google.com/p/web2py/issues/detail?id=174