Use text types for HTTP methods
Review Request #10695 — Created Sept. 6, 2019 and submitted — Latest diff uploaded
The DVCS-specific API resources were incorrectly using byte strings for
their method names. On Python 2, this would result in sending
HTTP POST
, but on Python 3 we would sendHTTP b'POST'
and end up
getting HTTP 400 errors back. If we use the text type, it works on both
Python 2 and Python 3.
rbtools/api/resource.py |
---|