Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gajim
python-nbxmpp
Commits
8fc874b6
Commit
8fc874b6
authored
Jan 01, 2023
by
Philipp Hörist
Browse files
cfix: Don’t sniff content on unsuccessful responses
parent
feffa352
Changes
1
Hide whitespace changes
Inline
Side-by-side
nbxmpp/http.py
View file @
8fc874b6
...
...
@@ -407,6 +407,10 @@ class HTTPRequest(GObject.GObject):
_params
:
GLib
.
HashTable
,
)
->
None
:
if
self
.
_message
.
get_status
()
not
in
(
Soup
.
Status
.
OK
,
Soup
.
Status
.
CREATED
):
return
headers
=
message
.
get_response_headers
()
encoding
=
headers
.
get_encoding
()
if
Soup
.
Encoding
.
CONTENT_LENGTH
not
in
convert_soup_encoding
(
encoding
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment