aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/ducks
diff options
context:
space:
mode:
authorMatthew Shao <me@matshao.com>2018-08-13 15:17:57 +0800
committerMatthew Shao <me@matshao.com>2018-08-13 15:20:08 +0800
commite9e2b7f443a1395a169d853ffd4e692485e9da1a (patch)
treed520a35081600e401cbf850ec5dc12ff75fa1e3a /web/src/js/ducks
parente74e97bcd96346a1ae8c372a94149100a755739a (diff)
downloadmitmproxy-e9e2b7f443a1395a169d853ffd4e692485e9da1a.tar.gz
mitmproxy-e9e2b7f443a1395a169d853ffd4e692485e9da1a.tar.bz2
mitmproxy-e9e2b7f443a1395a169d853ffd4e692485e9da1a.zip
[web] Fixes #3228:API endpoint error
Diffstat (limited to 'web/src/js/ducks')
-rw-r--r--web/src/js/ducks/flows.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/src/js/ducks/flows.js b/web/src/js/ducks/flows.js
index 523ec396..841feeba 100644
--- a/web/src/js/ducks/flows.js
+++ b/web/src/js/ducks/flows.js
@@ -209,7 +209,7 @@ export function uploadContent(flow, file, type) {
const body = new FormData()
file = new window.Blob([file], { type: 'plain/text' })
body.append('file', file)
- return dispatch => fetchApi(`/flows/${flow.id}/${type}/content`, { method: 'POST', body })
+ return dispatch => fetchApi(`/flows/${flow.id}/${type}/content.data`, { method: 'POST', body })
}