diff options
author | Matthew Shao <me@matshao.com> | 2017-04-25 19:29:52 +0800 |
---|---|---|
committer | Matthew Shao <me@matshao.com> | 2017-04-25 19:29:52 +0800 |
commit | 6962a2c3f22146ff866e3d9578519c3bd56304b9 (patch) | |
tree | 34d53137d20de9e19fcb8fac3098a595228db859 /web/src/js/ducks/flows.js | |
parent | dcac976a47046da286005ae8755630d72d251de7 (diff) | |
download | mitmproxy-6962a2c3f22146ff866e3d9578519c3bd56304b9.tar.gz mitmproxy-6962a2c3f22146ff866e3d9578519c3bd56304b9.tar.bz2 mitmproxy-6962a2c3f22146ff866e3d9578519c3bd56304b9.zip |
Fix the tests for flows actions.
Diffstat (limited to 'web/src/js/ducks/flows.js')
-rw-r--r-- | web/src/js/ducks/flows.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/src/js/ducks/flows.js b/web/src/js/ducks/flows.js index d36bc247..523ec396 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`, { method: 'POST', body }) } @@ -225,7 +225,7 @@ export function download() { export function upload(file) { const body = new FormData() body.append('file', file) - return dispatch => fetchApi('/flows/dump', { method: 'post', body }) + return dispatch => fetchApi('/flows/dump', { method: 'POST', body }) } |