mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-22 20:25:38 +00:00
fix: correct fallback for URL retrieval in bruRequestToJson
This commit is contained in:
@@ -49,7 +49,7 @@ export const bruRequestToJson = (data: string | any, parsed: boolean = false): a
|
||||
requestType === 'grpc-request'
|
||||
? _.get(json, 'grpc.method', '')
|
||||
: String(_.get(json, 'http.method') ?? '').toUpperCase(),
|
||||
url: _.get(json, urlPath[requestType], urlPath.default),
|
||||
url: _.get(json, urlPath[requestType], _.get(json, urlPath.default)),
|
||||
headers: ['grpc-request','ws-request'].includes(requestType) ? _.get(json, 'metadata', []) : _.get(json, 'headers', []),
|
||||
auth: _.get(json, 'auth', {}),
|
||||
body: _.get(json, 'body', {}),
|
||||
|
||||
Reference in New Issue
Block a user