diff --git a/gui_server.py b/gui_server.py index ce7e7e1..0e0ced6 100644 --- a/gui_server.py +++ b/gui_server.py @@ -18,7 +18,8 @@ async def handle_download(request): content = proxy_log.get_content_storage().read(hash_value) if content is None: return web.Response(status=404) - return web.Response(body=content, status=200, headers={'Content-Type': 'application/octet-stream'}) + content_type = request.query.get('content_type', 'application/octet-stream') + return web.Response(body=content, status=200, headers={'Content-Type': content_type}) def run_gui_server(environment: Environment, proxy_log: ProxyLog): diff --git a/webapp/src/components/common/PlaceholderButton.vue b/webapp/src/components/common/PlaceholderButton.vue index 3720ea7..4b340c7 100644 --- a/webapp/src/components/common/PlaceholderButton.vue +++ b/webapp/src/components/common/PlaceholderButton.vue @@ -3,7 +3,7 @@ \ No newline at end of file diff --git a/webapp/src/components/pages/RequestLog/components/HttpBodyTabs.vue b/webapp/src/components/pages/RequestLog/components/HttpBodyTabs.vue new file mode 100644 index 0000000..153a02a --- /dev/null +++ b/webapp/src/components/pages/RequestLog/components/HttpBodyTabs.vue @@ -0,0 +1,89 @@ + + +