Commit 59bc8000 authored by ueshiba's avatar ueshiba
Browse files

- Include defaultHTTPHeaders in every request

- Bump library version
parent ab6aff5f
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