1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-23 18:52:10 +01:00

- added comment for a change introduced in commit 4d3fcd9dc1f2c53272abd9c9fc8464df81f0da3e

This commit is contained in:
Marcus Huewe 2015-08-13 14:13:08 +02:00
parent 4d3fcd9dc1
commit 0de99cadbb

View File

@ -92,6 +92,7 @@ class MyHTTPHandler(HTTPHandler):
elif exp is None:
raise RuntimeError('exp or expfile required')
if exp is not None:
# use req.data instead of req.get_data() for python3 compatiblity
if req.data != bytes(exp, "utf-8"):
raise RequestDataMismatch(req.get_full_url(), repr(req.get_data()), repr(exp))
return self.__get_response(req.get_full_url(), **kwargs)