Pete Zaitcev
unread,Jun 19, 2012, 6:49:59 PM6/19/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message as abuse
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to paste...@googlegroups.com, Pete Zaitcev
Hello:
The webob-1.2 includes the following in byterange.py:
_rx_range = re.compile('bytes *= *(\d*) *- *(\d*)')
It causes Openstack Swift functional tests fail after an upgrade from
webob-1.1 to webob-1.2. The test looks like this:
for r in ('BYTES=0-999', 'bytes = 0-999', 'BYTES = 0 - 999',
'bytes = 0 - 999', 'bytes=0 - 999', 'bytes=0-999 '):
self.assert_(file.read(hdrs={'Range': r}) == data[0:1000])
I think that the regex needs flags=re.I. The pre-1.2 code had
a parser that used .lower() to accomplish the necessary action.
-- Pete