We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We set custom header fields on the default session configuration which Timberjack removes
To reproduce create a manager in the following way:
class HTTPManager: Manager { static let sharedManager: HTTPManager = { let configuration = Timberjack.defaultSessionConfiguration() let version = NSBundle.mainBundle().infoDictionary!["CFBundleVersion"] as! String let release = NSBundle.mainBundle().infoDictionary!["CFBundleShortVersionString"] as! String let device = UIDevice.currentDevice() configuration.HTTPAdditionalHeaders = [ "User-Agent": "AppName iOS \(release)/\(version); \(device.systemName) \(device.systemVersion))", "X-Device-Id": "Some generated ID" ] let manager = HTTPManager(configuration: configuration) return manager }() }
The received request looks like this:
POST /v1/event HTTP/1.1 Host: localhost:3000 Content-Type: application/x-www-form-urlencoded; charset=utf-8 Connection: keep-alive Accept: */* User-Agent: AppName/54 CFNetwork/711.4.6 Darwin/15.4.0 Content-Length: 81 Accept-Language: en-us Accept-Encoding: gzip, deflate
The expected header should look like this:
POST /v1/event HTTP/1.1 Host: localhost:3000 Content-Type: application/x-www-form-urlencoded; charset=utf-8 Connection: keep-alive X-Device-Id: Some generated ID Accept: */* User-Agent: AppName iOS 0.6.0/54; iPhone OS 8.4) Content-Length: 81 Accept-Language: en-us Accept-Encoding: gzip, deflate
The text was updated successfully, but these errors were encountered:
We're using Timberjack with the lastest Alamofire (3.3.1)
Sorry, something went wrong.
+1 After adding a custom header, with Timberjack it gets removed.
No branches or pull requests
We set custom header fields on the default session configuration which Timberjack removes
To reproduce create a manager in the following way:
The received request looks like this:
The expected header should look like this:
The text was updated successfully, but these errors were encountered: