mitmweb: Allow up to 4GB dump to be uploaded (#6373)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Maximilian Hils <github@maximilianhils.com>
This commit is contained in:
TWY 2023-09-19 19:10:28 +09:00 committed by GitHub
parent dd1ee72b21
commit 37450173a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View file

@ -4,6 +4,8 @@
* Add support for reading HAR files using the existing flow loading APIs, e.g. `mitmproxy -r example.har`.
([#6335](https://github.com/mitmproxy/mitmproxy/pull/6335), @stanleygvi)
* Increase maximum dump file size accepted by mitmweb
([#6373](https://github.com/mitmproxy/mitmproxy/pull/6373), @t-wy)
## 04 August 2023: mitmproxy 10.0.0

View file

@ -97,7 +97,9 @@ class WebMaster(master.Master):
tornado.ioloop.IOLoop.current()
# Add our web app.
http_server = tornado.httpserver.HTTPServer(self.app)
http_server = tornado.httpserver.HTTPServer(
self.app, max_buffer_size=2**32
) # 4GB
try:
http_server.listen(self.options.web_port, self.options.web_host)
except OSError as e: