mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-26 06:05:45 +00:00
Update prepareGqlIntrospectionRequest change assignment sequence
This commit is contained in:
@@ -29,14 +29,15 @@ const prepareGqlIntrospectionRequest = (endpoint, combinedVars, request, collect
|
||||
const mapHeaders = (requestHeaders, collectionHeaders) => {
|
||||
const headers = {};
|
||||
|
||||
each(requestHeaders, (h) => {
|
||||
// Add collection headers first
|
||||
each(collectionHeaders, (h) => {
|
||||
if (h.enabled) {
|
||||
headers[h.name] = h.value;
|
||||
}
|
||||
});
|
||||
|
||||
// collection headers
|
||||
each(collectionHeaders, (h) => {
|
||||
// Then add request headers, which will overwrite if names overlap
|
||||
each(requestHeaders, (h) => {
|
||||
if (h.enabled) {
|
||||
headers[h.name] = h.value;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user