Skip to content
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

feat: provide the right URL to workers #234

Merged
merged 2 commits into from
Oct 16, 2023
Merged

Conversation

Angelmmiguel
Copy link
Contributor

Build the right URL when passing the information to the worker. Currently, actix-web doesn't provide a way to provide a full URL (including schema + authority) on the framework. There's an open issue and PR about this topic in the repo. In this PR, I try to build the right URL before passing it to the worker and defaults to the current URI when it's not possible.

I also included a new HonoJS example that relies on this fix.

It fixes #232

@Angelmmiguel Angelmmiguel added the 🐛 bug Something isn't working label Oct 16, 2023
@Angelmmiguel Angelmmiguel added this to the 1.7.0 milestone Oct 16, 2023
@Angelmmiguel Angelmmiguel requested a review from a team October 16, 2023 08:50
@Angelmmiguel Angelmmiguel self-assigned this Oct 16, 2023
@Angelmmiguel Angelmmiguel merged commit a7bf26b into main Oct 16, 2023
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working cla-not-required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request URL only includes the path + query string
3 participants