-
Notifications
You must be signed in to change notification settings - Fork 98
Open
Description
My proxy has the following setting:
proxy = mockttp.getLocal({
https: ca,
http2: true,
socks: false,
recordTraffic: false,
debug: false,
passthrough: ['unknown-protocol'],
});
proxy.forAnyRequest().thenPassThrough({
simulateConnectionErrors: true,
async beforeRequest(request: CompletedRequest) { },
async beforeResponse(
response: PassThroughResponse,
request: CompletedRequest
) { },
});
But if my response contain duplicate header for
x-content-type-options: nosniff
x-content-type-options: nosniff
this is throwing error as :
Failed to handle request: Header field "x-content-type-options" must only have a single value
Can't we just simply skip that throw? I use mockttp version 4.1.0
Metadata
Metadata
Assignees
Labels
No labels