mirror of
https://github.com/usebruno/bruno.git
synced 2026-06-22 20:25:38 +00:00
fix: header saving in ws
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -31929,9 +31929,9 @@
|
||||
"axios": "^1.9.0",
|
||||
"grpc-reflection-js": "^0.3.0",
|
||||
"is-ip": "^5.0.1",
|
||||
"ws": "^8.18.3",
|
||||
"system-ca": "^2.0.1",
|
||||
"tough-cookie": "^6.0.0"
|
||||
"tough-cookie": "^6.0.0",
|
||||
"ws": "^8.18.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/preset-env": "^7.22.0",
|
||||
|
||||
@@ -50,7 +50,7 @@ export const bruRequestToJson = (data: string | any, parsed: boolean = false): a
|
||||
? _.get(json, 'grpc.method', '')
|
||||
: String(_.get(json, 'http.method') ?? '').toUpperCase(),
|
||||
url: _.get(json, urlPath[requestType], urlPath.default),
|
||||
headers: requestType === 'grpc-request' ? _.get(json, 'metadata', []) : _.get(json, 'headers', []),
|
||||
headers: ['grpc-request','ws-request'].includes(requestType) ? _.get(json, 'metadata', []) : _.get(json, 'headers', []),
|
||||
auth: _.get(json, 'auth', {}),
|
||||
body: _.get(json, 'body', {}),
|
||||
script: _.get(json, 'script', {}),
|
||||
|
||||
Reference in New Issue
Block a user