Skip to content

Commit

Permalink
in the fray, I forgot to fix the initial bug with SCRIPT_NAME.
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Butcher <matt.butcher@microsoft.com>
  • Loading branch information
technosophos committed Aug 21, 2021
1 parent beaf6e2 commit 88e8053
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ impl Module {
let script_name = self
.route
.strip_suffix("/...")
.map(|i| i.to_string())
.map(|i| format!("/{}", i)) // At the bare minimum, SCRIPT_NAME must be '/'
.unwrap_or_else(|| self.route.clone());
headers.insert("SCRIPT_NAME".to_owned(), script_name);
// PATH_INFO is any path information after SCRIPT_NAME
Expand Down

0 comments on commit 88e8053

Please sign in to comment.