Skip to content

Commit d8179cf

Browse files
Fix parsing response headers (#13)
1 parent 5f616c3 commit d8179cf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,7 @@ Refer Examples [here](./test/plugin.spec.js)
5050
`npm install`
5151

5252
`npm run build`
53+
54+
## Credits
55+
56+
A special thanks to creators and maintainers of [node-http-mitm-proxy](https://github.com/joeferner/node-http-mitm-proxy). Their efforts have laid the foundation for the capabilities embedded in this plugin.

src/utils/proxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ export function sanitizeMockConfig(config: MockConfig) {
290290
throw new Error('Invalid config provided for api mock');
291291
}
292292
config.headers = parseHeaderConfig(config.headers);
293-
config.responseHeaders = parseHeaderConfig(config.headers);
293+
config.responseHeaders = parseHeaderConfig(config.responseHeaders);
294294

295295
/* Validate if the config has corrent RegExp */
296296
const pathsToValidate = [

0 commit comments

Comments
 (0)