Skip to content

Commit

Permalink
Workflow key should be url encoded (#1543)
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper authored May 22, 2024
1 parent e8b09c3 commit 67fb62d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/ingress-http/src/handler/path_parsing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ impl WorkflowRequestType {
.next()
.ok_or(HandlerError::BadWorkflowPath)?
.to_owned();
let workflow_key = path_parts
.next()
.ok_or(HandlerError::BadWorkflowPath)?
.to_owned();
let workflow_key =
urlencoding::decode(path_parts.next().ok_or(HandlerError::BadWorkflowPath)?)
.map_err(HandlerError::UrlDecodingError)?
.into_owned();

// Resolve or reject
match path_parts.next().ok_or(HandlerError::BadWorkflowPath)? {
Expand Down

0 comments on commit 67fb62d

Please sign in to comment.