Skip to content

Commit

Permalink
* [html5] fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRaindrop committed Jun 30, 2016
1 parent ea43f44 commit 8e905dc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions html5/browser/api/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,10 @@ const stream = {
try {
config.body = JSON.stringify(body)
config.headers['Content-Type'] = TYPE_JSON
} catch (e) {}
} else if (utils.getType(body) === 'string' && body.match(REG_FORM)) {
}
catch (e) {}
}
else if (utils.getType(body) === 'string' && body.match(REG_FORM)) {
// is form-data
config.body = encodeURI(body)
config.headers['Content-Type'] = TYPE_FORM
Expand Down

0 comments on commit 8e905dc

Please sign in to comment.