### **User description**
See https://tyktech.atlassian.net/browse/TT-11990
___
### **PR Type**
enhancement, tests
___
### **Description**
- Added a new integration test in `gateway/mw_graphql_test.go` to verify
that consumer's header values are prioritized over the default request
headers in GraphQL middleware.
- Updated `internal/graphengine/transport.go` to enhance header
management by prioritizing consumer's header values, deleting the header
from request headers if it exists before adding the consumer's value.
___
### **Changes walkthrough** 📝
<table><thead><tr><th></th><th align="left">Relevant
files</th></tr></thead><tbody><tr><td><strong>Tests
</strong></td><td><table>
<tr>
<td>
<details>
<summary><strong>mw_graphql_test.go</strong><dd><code>Add test for
prioritizing consumer header values in GraphQL
middleware</code></dd></summary>
<hr>
gateway/mw_graphql_test.go
<li>Added a new test case to ensure consumer's header values are
<br>prioritized over default request headers.<br>
</details>
</td>
<td><a
href="https://github.com/TykTechnologies/tyk/pull/6277/files#diff-72c11b8efcaceccfbbd87e75565353706443bf56420d3fdba6b5bf5f632f4b33">+41/-0</a>
</td>
</tr>
</table></td></tr><tr><td><strong>Enhancement
</strong></td><td><table>
<tr>
<td>
<details>
<summary><strong>transport.go</strong><dd><code>Modify header handling
to prioritize consumer's values</code>
</dd></summary>
<hr>
internal/graphengine/transport.go
<li>Modified header handling to prioritize consumer's header values by
<br>deleting existing header from request headers if present.<br>
</details>
</td>
<td><a
href="https://github.com/TykTechnologies/tyk/pull/6277/files#diff-564061c9b29366529eb1f6f10fe39671d2ac738a4731ffd2c8b04dcc0a8cd610">+6/-0</a>
</td>
</tr>
</table></td></tr></tr></tbody></table>
___
> 💡 **PR-Agent usage**:
>Comment `/help` on the PR to get a list of all available PR-Agent tools
and their descriptions
User description
See https://tyktech.atlassian.net/browse/TT-11990
PR Type
enhancement, tests
Description
gateway/mw_graphql_test.goto verify that consumer's header values are prioritized over the default request headers in GraphQL middleware.internal/graphengine/transport.goto enhance header management by prioritizing consumer's header values, deleting the header from request headers if it exists before adding the consumer's value.Changes walkthrough 📝
mw_graphql_test.go
Add test for prioritizing consumer header values in GraphQL middlewaregateway/mw_graphql_test.go
prioritized over default request headers.
transport.go
Modify header handling to prioritize consumer's valuesinternal/graphengine/transport.go
deleting existing header from request headers if present.