summary refs log tree commit diff
path: root/tests/http/test_client.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Use mock from the stdlib. (#9772)Patrick Cloke2021-04-091-2/+1
|
* Add tests for blacklisting reactor/agent. (#9563)Patrick Cloke2021-03-111-2/+124
|
* (Hopefully) stop leaking file descriptors in media repo. (#9497)Patrick Cloke2021-03-011-36/+55
| | | | By consuming the response if the headers imply that the content is too large.
* Reduce the memory usage of previewing media files. (#9421)Patrick Cloke2021-02-181-4/+5
| | | | | | | | This reduces the memory usage of previewing media files which end up larger than the `max_spider_size` by avoiding buffering content internally in treq. It also checks the `Content-Length` header in additional places instead of streaming the content to check the body length.
* Avoid raising the body exceeded error multiple times. (#9108)Patrick Cloke2021-01-151-0/+101
Previously this code generated unreferenced `Deferred` instances which caused "Unhandled Deferreds" errors to appear in error situations.