diff options
author | Liora Milbaum <liora@lmb.co.il> | 2022-12-21 13:35:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-21 12:35:09 +0100 |
commit | b59b7bdb221ac924b5be4227ef7201d79b40c98f (patch) | |
tree | cf0b53c2023574e0c494124f29d394e7a10957fb | |
parent | 3e1c625133074ccd2fb88c429ea151bfda96aebb (diff) | |
download | gitlab-b59b7bdb221ac924b5be4227ef7201d79b40c98f.tar.gz |
refactor: add reason property to RequestsResponse (#2439)
-rw-r--r-- | gitlab/http_backends/requests_backend.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gitlab/http_backends/requests_backend.py b/gitlab/http_backends/requests_backend.py index 60309fc..4ea23a7 100644 --- a/gitlab/http_backends/requests_backend.py +++ b/gitlab/http_backends/requests_backend.py @@ -27,6 +27,10 @@ class RequestsResponse: def content(self) -> bytes: return self._response.content + @property + def reason(self) -> str: + return self._response.reason + def json(self) -> Any: return self._response.json() |