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
This change allows for the user to specify additional headers in the request object.
```
const request = new Request('post', 'localhost:3000/my_endpoint', { body: { name: 'Request.JS' }, headers: { 'X-Custom-Header': '...' } })
```
Anything in the `headers` option is merged into the preset headers. Last one in wins, so this should also allow for overriding defaults if desired.
0 commit comments