Skip to content

Commit

Permalink
Re-add the CC host to RESTNetworkManager
Browse files Browse the repository at this point in the history
  • Loading branch information
michelle-signal authored and charlesmchen-signal committed Sep 7, 2021
1 parent f511bcb commit 0aadc2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SignalServiceKit/src/Network/API/RESTNetworkManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ public class RESTSessionManager: NSObject {
value: OWSURLSession.signalIosUserAgent,
overwriteOnConflict: true)

if signalService.isCensorshipCircumventionActive {
httpHeaders.addHeader("Host", value: TSConstants.censorshipReflectorHost, overwriteOnConflict: true)
}

// Then apply any custom headers for the request
httpHeaders.addHeaders(request.allHTTPHeaderFields, overwriteOnConflict: true)

Expand Down

0 comments on commit 0aadc2d

Please sign in to comment.