-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
See AppPETs/PrivacyService@fdb53ac.
I tried setting:
request.allHTTPHeaderFields = [:], seeURLRequest.allHTTPHeaderFieldsrequest.setValue(nil, forHTTPHeaderField: "User-Agent"), seeURLRequest.setValue(_:forHTTPHeaderField:)sessionConfiguration.httpAdditionalHeaders = nilandsessionConfiguration.httpAdditionalHeaders = [:], seeURLSessionConfiguration. httpAdditionalHeaders
These methods could be used to override default HTTP headers, but none of them prevents the header from being sent.
The Shalon implementation gives way more control over which HTTP headers are sent.
This issue was migrated from https://gitlab.prae.me/apppets/PrivacyKit/issues/2.
Metadata
Metadata
Assignees
Labels
No labels