Skip to content

Commit

Permalink
Merge pull request #1183 from WalletConnect/bundle-id-in-header
Browse files Browse the repository at this point in the history
[Core] add bundle id to a header
  • Loading branch information
llbartekll authored Oct 24, 2023
2 parents feb3702 + 0fa9ec9 commit f7979aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/WalletConnectRelay/Dispatching.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ final class Dispatcher: NSObject, Dispatching {

let socket = socketFactory.create(with: relayUrlFactory.create(fallback: fallback))
socket.request.addValue(EnvironmentInfo.userAgent, forHTTPHeaderField: "User-Agent")
if let bundleId = Bundle.main.bundleIdentifier {
socket.request.addValue(bundleId, forHTTPHeaderField: "Origin")
}
self.socket = socket

switch socketConnectionType {
Expand Down

0 comments on commit f7979aa

Please sign in to comment.