-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
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
fix: pass headers in fetch, add user-agent #944
Conversation
@@ -51,13 +51,16 @@ export default function bounce(func, { responder, timeout = 500, debounce = () = | |||
})(); | |||
// invoke the current function again, via HTTP, with the x-hlx-bounce-id | |||
// header set, so that we don't get into an endless loop | |||
request.headers.set('x-hlx-bounce-id', bounceId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
avoid changing passed in parameter request
headers: { | ||
...request.headers, | ||
'x-hlx-bounce-id': bounceId, | ||
'user-agent': 'adobe/helix-shared-bounce', | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead pass other headers here
# [@adobe/helix-shared-bounce-v2.0.19](https://github.com/adobe/helix-shared/compare/@adobe/helix-shared-bounce-v2.0.18...@adobe/helix-shared-bounce-v2.0.19) (2024-06-04) ### Bug Fixes * pass headers in fetch, add user-agent ([#944](#944)) ([df3d126](df3d126))
🎉 This PR is included in version @adobe/helix-shared-bounce-v2.0.19 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.