You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update EventsTest instrumentation test to verify headers are set correctly.
Disallowed Headers
Any new header can be added except the ones specified below. Both the gradle plugin and SDK implementations must ignore if any of the following headers have been provided. The comparison must be case insensitive.
Content-Type
msr-req-id
Authorization
Content-Length
For the SDK, these disallowed headers must be added to a new InternalConfig called disallowedCustomHeaders: List<String>.
Description
Measure Gradle Plugin
MeasurePluginExtension
expose a newhttpHeaders: Map<String, String>
field which allows adding custom headers at build time.Also ensure that these headers can be overriden by a variant filter config:
BuildUploadTask
to accept the headers as a inputBuildUploadTaskTest
.Measure SDK
MeasureConfig
calledrequestHeadersProvider: MsrRequestHeadersProvider
, with a default implementation which returns an empty map.NetworkClientImpl
to add the headers from the config.NetworkClientTest
as necessary.EventsTest
instrumentation test to verify headers are set correctly.Disallowed Headers
Any new header can be added except the ones specified below. Both the gradle plugin and SDK implementations must ignore if any of the following headers have been provided. The comparison must be case insensitive.
For the SDK, these disallowed headers must be added to a new
InternalConfig
calleddisallowedCustomHeaders: List<String>
.Related issue
Feature request: #1689
The text was updated successfully, but these errors were encountered: