mirror of
https://github.com/Kong/insomnia.git
synced 2026-08-04 11:52:33 -04:00
Undo validHeaders map
This commit is contained in:
@@ -102,15 +102,7 @@ export const mockRouteToHar = ({
|
||||
headersArray: RequestHeader[];
|
||||
body: string;
|
||||
}): Har.Response => {
|
||||
const validHeaders = headersArray
|
||||
.filter(({ name }) => !!name)
|
||||
.map(h => ({
|
||||
id: h.id || '',
|
||||
name: h.name,
|
||||
value: h.value,
|
||||
description: h.description || '',
|
||||
disabled: h.disabled ?? false,
|
||||
}));
|
||||
const validHeaders = headersArray.filter(({ name }) => !!name);
|
||||
return {
|
||||
status: +statusCode,
|
||||
statusText: statusText || RESPONSE_CODE_REASONS[+statusCode] || '',
|
||||
|
||||
Reference in New Issue
Block a user