fix: headers having different values with the same key are not shown (#4112)
* feat: allow ability for multiple headers with the same key to be shown * chore: remove extension inspector in selfhost-desktop * chore: cleanup --------- Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
This commit is contained in:
@@ -16,6 +16,22 @@ export type NetworkResponse = AxiosResponse<unknown> & {
|
||||
endTime: number
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Optional additional fields with special optional metadata that can be used
|
||||
*/
|
||||
additional?: {
|
||||
/**
|
||||
* By the HTTP spec, we can have multiple headers with the same name, but
|
||||
* this is not accessible in the AxiosResponse type as the headers there are Record<string, string>
|
||||
* (and hence cannot have secondary values).
|
||||
*
|
||||
* If this value is present, headers can be read from here which will have the data.
|
||||
*/
|
||||
multiHeaders?: Array<{
|
||||
key: string
|
||||
value: string
|
||||
}>
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user