-
Notifications
You must be signed in to change notification settings - Fork 269
Open
Description
Current Behavior
Adding a pingServerUrl and customHeaders object does not result in the custom headers being sent with the ping request.
<NetworkProvider
pingServerUrl={`https://pingurl.com/ping`}
customHeaders={{ 'any-custom-header': 'xyz' }}
>Expected Behavior
Adding custom headers attaches those headers to the requests that check the internetConnectivity
How to reproduce
add customHeaders prop and a pingServerUrl
<NetworkProvider
pingServerUrl={`https://pingurl.com/ping`}
customHeaders={{ 'any-custom-header': 'xyz' }}
>Observe that pings do not contain the headers as expected.
Your Environment
| software | version |
|---|---|
| react-native-offline | 6.0.2 |
| react-native | 0.71 |
| node | 16 |
| npm or yarn | yarn |
Metadata
Metadata
Assignees
Labels
No labels