File tree Expand file tree Collapse file tree
packages/insomnia-sdk/src/objects Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ export async function initInsomniaObject(
208208 url : reqUrl ,
209209 method : rawObj . request . method ,
210210 header : rawObj . request . headers . map (
211- ( header : RequestHeader ) => ( { key : header . name , value : header . value } )
211+ ( header : RequestHeader ) => ( { key : header . name , value : header . value , disabled : header . disabled } )
212212 ) ,
213213 body : toScriptRequestBody ( rawObj . request . body ) ,
214214 auth : toPreRequestAuth ( rawObj . request . authentication ) ,
Original file line number Diff line number Diff line change @@ -592,7 +592,7 @@ export function mergeRequestBody(
592592 }
593593
594594 try {
595- const textContent = updatedReqBody ?. raw ? updatedReqBody ?. raw :
595+ const textContent = updatedReqBody ?. raw !== undefined ? updatedReqBody ?. raw :
596596 updatedReqBody ?. graphql ? JSON . stringify ( updatedReqBody ?. graphql ) : undefined ;
597597
598598 return {
@@ -620,11 +620,13 @@ export function mergeRequests(
620620 url : updatedReq . url . toString ( ) ,
621621 method : updatedReq . method ,
622622 body : mergeRequestBody ( updatedReq . body , originalReq . body ) ,
623- headers : updatedReq . headers . map (
624- ( header : Header ) => ( {
625- name : header . key ,
626- value : header . value ,
627- } ) ,
623+ headers : updatedReq . headers
624+ . map (
625+ ( header : Header ) => ( {
626+ name : header . key ,
627+ value : header . value ,
628+ disabled : header . disabled ,
629+ } ) ,
628630 { } ,
629631 ) ,
630632 authentication : fromPreRequestAuth ( updatedReq . auth ) ,
You can’t perform that action at this time.
0 commit comments