Commit f66a2cfc authored by Jose Blaya's avatar Jose Blaya
Browse files

Merge branch '53-missing-user-agent-request-header-in-every-request' into 'develop'

Resolve "Missing User-Agent request header in every request"

See merge request ios/client-library-apple!109
parents ab6aff5f 59bc8000
Pod::Spec.new do |s|
s.name = "PIALibrary"
s.version = "1.1.4"
s.version = "1.1.5"
s.summary = "PIA client library in Swift."
s.homepage = "https://www.privateinternetaccess.com/"
......
......@@ -201,7 +201,7 @@ class PIAWebServices: WebServices, ConfigurationAccess {
_ statuses: [Int],
_ executor: RequestExecutor) {
var headers = HTTPHeaders()
var headers = SessionManager.defaultHTTPHeaders
// headers["X-Device"] = "ios-\(Constants.iosVersion)/\(Constants.appVersion)/\(Constants.language)/\(Constants.region)"
if let credentials = credentials, let authHeader = Request.authorizationHeader(user: credentials.username, password: credentials.password) {
headers[authHeader.key] = authHeader.value
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment