5efe19ff7f
This is a combination of 2 commits. The first commit's message is: Prevent MemoryError when logging response bodies Response bodies are loaded into memory prior to being logged. Loading huge response bodies may result in a MemoryError. This patch proposes that only JSON and TEXT responses be logged, i.e when the Content-Type header is application/json or application/text. Responses that do not include or have a different Content-Type header will have their body omitted. Closes-bug: 1616105 Change-Id: I93b6fff73368c4f58bdebf8566c4948b50980cee (cherry picked from commit |
||
---|---|---|
.. | ||
notes | ||
source |