Liron Aravot has posted comments on this change. Change subject: core: GET requests - use Range header ......................................................................
Patch Set 7: (2 comments) http://gerrit.ovirt.org/#/c/28465/7/vdsm/BindingXMLRPC.py File vdsm/BindingXMLRPC.py: Line 265: def _getLength(self): Line 266: value = self._getRequiredHeader(self.HEADER_RANGE, Line 267: httplib.BAD_REQUEST) Line 268: Line 269: m = re.match('r^bytes=(\d*)-(\d+)$', value) > This should be: typing mistake, done. Line 270: if m is None: Line 271: raise self.RequestException( Line 272: httplib.BAD_REQUEST, Line 273: "range in an unsupported format: %r", value) Line 279: "range first byte position other than 0 isn't " Line 280: "supported") Line 281: Line 282: last_byte = m.group(2) Line 283: if last_byte == '': > This is not possible with your regex - please read again the comments in th haven't noticed that i left the + there instead of *, fixed. let's hear other opinions about that part. Line 284: raise self.RequestException( Line 285: httplib.BAD_REQUEST, Line 286: "unspecified range last byte position isn't supported") Line 287: -- To view, visit http://gerrit.ovirt.org/28465 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: comment Gerrit-Change-Id: I8164867347b1cf800efd2a78cc98dbc10c02ee0d Gerrit-PatchSet: 7 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Liron Aravot <[email protected]> Gerrit-Reviewer: Allon Mureinik <[email protected]> Gerrit-Reviewer: Federico Simoncelli <[email protected]> Gerrit-Reviewer: Liron Aravot <[email protected]> Gerrit-Reviewer: Nir Soffer <[email protected]> Gerrit-Reviewer: [email protected] Gerrit-Reviewer: oVirt Jenkins CI Server Gerrit-HasComments: Yes _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
