product-microgateway
product-microgateway copied to clipboard
In interceptors header to replace gets added even when the header in not present in the client request
Description:
In interceptors, if the interceptor service returns a response with headersToReplace
param, these headers gets added even when the header to replace is not present in the client request. Yet, when the relevant header is present the replacing works correctly without duplications.
As a work around, the interceptor service must check if the header exists before adding the headersToReplace
param.
Steps to reproduce:
Affected Product Version:
RC2
Environment details (with versions):
- OS:
- Client:
- Env (Docker/K8s):