forked from extern/bruno
fix: fixed bug where content type was getting overwritten everytime as application/x-www-form-urlencoded
This commit is contained in:
parent
2976842588
commit
330a7ad18a
@ -41,7 +41,7 @@ const runSingleRequest = async function (filename, bruJson, collectionPath, coll
|
||||
interpolateVars(request, envVariables, collectionVariables);
|
||||
|
||||
// stringify the request url encoded params
|
||||
if(request.headers['content-type'] = 'application/x-www-form-urlencoded') {
|
||||
if(request.headers['content-type'] === 'application/x-www-form-urlencoded') {
|
||||
request.data = qs.stringify(request.data);
|
||||
}
|
||||
|
||||
|
@ -126,7 +126,7 @@ const registerNetworkIpc = (mainWindow, watcher, lastOpenedCollections) => {
|
||||
interpolateVars(request, envVars, collectionVariables);
|
||||
|
||||
// stringify the request url encoded params
|
||||
if(request.headers['content-type'] = 'application/x-www-form-urlencoded') {
|
||||
if(request.headers['content-type'] === 'application/x-www-form-urlencoded') {
|
||||
request.data = qs.stringify(request.data);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user