File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " restbro" ,
3- "version" : " 1.0.10 " ,
3+ "version" : " 1.0.11 " ,
44 "description" : " A modern API testing tool similar to Postman and Insomnia" ,
55 "main" : " dist/main/main/index.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -53,10 +53,12 @@ export function parseCurlCommand(raw: string): CurlParsed {
5353 token === '--data-raw' ||
5454 token === '--data-binary'
5555 ) {
56- body = tokens [ ++ i ] || '' ;
56+ const data = tokens [ ++ i ] || '' ;
57+ body = body ? `${ body } &${ data } ` : data ;
5758 if ( method === 'GET' ) method = 'POST' ;
5859 } else if ( token === '--data-urlencode' ) {
59- body = tokens [ ++ i ] || '' ;
60+ const data = tokens [ ++ i ] || '' ;
61+ body = body ? `${ body } &${ data } ` : data ;
6062 if ( method === 'GET' ) method = 'POST' ;
6163 if ( ! headers [ 'Content-Type' ] ) {
6264 headers [ 'Content-Type' ] = 'application/x-www-form-urlencoded' ;
You can’t perform that action at this time.
0 commit comments