diff options
author | Clemens <cle1000.cb@gmail.com> | 2016-07-25 10:56:12 +0200 |
---|---|---|
committer | Clemens <cle1000.cb@gmail.com> | 2016-07-25 10:56:12 +0200 |
commit | 61ef7ca91b0cfc072b60e173104e01bd0145a6a1 (patch) | |
tree | e40d7ff8043253c4c0d911e9ab3eaba762029972 /web/src/js/ducks | |
parent | 0aedea6e60f22f78f3523b860027550159ba6dd8 (diff) | |
download | mitmproxy-61ef7ca91b0cfc072b60e173104e01bd0145a6a1.tar.gz mitmproxy-61ef7ca91b0cfc072b60e173104e01bd0145a6a1.tar.bz2 mitmproxy-61ef7ca91b0cfc072b60e173104e01bd0145a6a1.zip |
added contentHash
Diffstat (limited to 'web/src/js/ducks')
-rw-r--r-- | web/src/js/ducks/flows.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/web/src/js/ducks/flows.js b/web/src/js/ducks/flows.js index b197ff37..f96653a9 100644 --- a/web/src/js/ducks/flows.js +++ b/web/src/js/ducks/flows.js @@ -114,8 +114,7 @@ export function update(flow, data) { export function uploadContent(flow, file, type) { const body = new FormData() - if (typeof file !== File) - file = new Blob([file], {type: 'plain/text'}) + file = new Blob([file], {type: 'plain/text'}) body.append('file', file) return dispatch => fetchApi(`/flows/${flow.id}/${type}/content`, {method: 'post', body} ) } |