cloudflare / cloudflare/workers-rs

req.url() always returns production url

Open
#173 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
3.7k
Forks
429
Avg merge
20h 28m
Merged PRs (30d)
7

Description

read title.
For ms oauth2 i need to send a redirect URL when getting the token and I want to get the URL used programatically instead of somehow hard coding it for dev and prod

```rs
.get_async("/microsoft_auth", |req, ctx| async move {
let url = req.url().unwrap(); // this is always the production url
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.