File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/bruno-app/src/utils/curl Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ function getDataString(request) {
57
57
console . error ( 'Failed to parse JSON data:' , error ) ;
58
58
return { data : request . data . toString ( ) } ;
59
59
}
60
- } else if ( contentType && contentType . includes ( 'application/xml' ) ) {
60
+ } else if ( contentType && ( contentType . includes ( 'application/xml' ) || contentType . includes ( 'text/plain' ) ) ) {
61
61
return { data : request . data } ;
62
62
}
63
63
@@ -174,14 +174,14 @@ const curlToJson = (curlCommand) => {
174
174
}
175
175
176
176
if ( request . auth ) {
177
- if ( request . auth . mode === 'basic' ) {
177
+ if ( request . auth . mode === 'basic' ) {
178
178
requestJson . auth = {
179
179
mode : 'basic' ,
180
180
basic : {
181
181
username : repr ( request . auth . basic ?. username ) ,
182
182
password : repr ( request . auth . basic ?. password )
183
183
}
184
- }
184
+ } ;
185
185
}
186
186
}
187
187
You can’t perform that action at this time.
0 commit comments