File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 "name" : " httpsnippet" ,
44 "description" : " HTTP Request snippet generator for *most* languages" ,
55 "author" : " Ahmad Nassri <ahmad@mashape.com> (https://www.mashape.com/)" ,
6+ "homepage" : " https://github.com/Mashape/httpsnippet" ,
7+ "license" : " MIT" ,
68 "main" : " ./src/index.js" ,
79 "bin" : " ./bin/httpsnippet" ,
10+ "keywords" : [
11+ " HAR" ,
12+ " HTTP" ,
13+ " API" ,
14+ " Snippet"
15+ ],
816 "engines" : {
917 "node" : " >=0.12"
1018 },
19+ "repository" : {
20+ "type" : " git" ,
21+ "url" : " https://github.com/Mashape/httpsnippet"
22+ },
23+ "bugs" : {
24+ "url" : " https://github.com/Mashape/httpsnippet/issues"
25+ },
1126 "scripts" : {
1227 "test" : " standard && mocha --reporter spec" ,
1328 "coverage" : " istanbul cover ./node_modules/mocha/bin/_mocha"
1732 " **/test/fixtures/**"
1833 ]
1934 },
20- "repository" : {
21- "type" : " git" ,
22- "url" : " git@github.com:Mashape/httpsnippet"
23- },
24- "license" : " MIT" ,
25- "bugs" : {
26- "url" : " https://github.com/Mashape/httpsnippet/issues"
27- },
28- "homepage" : " https://github.com/Mashape/httpsnippet" ,
2935 "devDependencies" : {
3036 "codeclimate-test-reporter" : " 0.0.4" ,
31- "glob" : " ^5.0.2 " ,
32- "istanbul" : " ^0.3.7 " ,
37+ "glob" : " ^5.0.3 " ,
38+ "istanbul" : " ^0.3.8 " ,
3339 "mocha" : " ^2.2.1" ,
34- "should" : " ^5.1 .0"
40+ "should" : " ^5.2 .0"
3541 },
3642 "dependencies" : {
3743 "async" : " ^0.9.0" ,
3844 "chalk" : " ^1.0.0" ,
3945 "commander" : " ^2.7.1" ,
40- "debug" : " ^2.1.2 " ,
46+ "debug" : " ^2.1.3 " ,
4147 "event-stream" : " ^3.3.0" ,
4248 "form-data" : " ^0.2.0" ,
4349 "har-validator" : " ^1.1.2" ,
4450 "require-directory" : " ^2.1.0" ,
45- "standard" : " ^3.0.0-beta "
51+ "standard" : " ^2.11.0 "
4652 }
4753}
Original file line number Diff line number Diff line change 22
33var debug = require ( 'debug' ) ( 'httpsnippet' )
44var es = require ( 'event-stream' )
5- var FormData = require ( 'form-data' )
5+ var MultiPartForm = require ( 'form-data' )
66var qs = require ( 'querystring' )
77var reducer = require ( './reducer' )
88var targets = require ( './targets' )
@@ -72,7 +72,7 @@ var HTTPSnippet = function (req, lang) {
7272 this . source . postData . text = ''
7373 this . source . postData . mimeType = 'multipart/form-data'
7474
75- var form = new FormData ( )
75+ var form = new MultiPartForm ( )
7676
7777 // easter egg
7878 form . _boundary = '---011000010111000001101001'
You can’t perform that action at this time.
0 commit comments