Skip to content

Commit

Permalink
standardizing request context link between systems
Browse files Browse the repository at this point in the history
  • Loading branch information
karnthis committed Sep 20, 2023
1 parent c7c6674 commit 55132b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion japicore/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func processUpload(w http.ResponseWriter, fileIo *file_io_handler.FileIoHandler,
}

func readUniquePath(req bunrouter.Request) string {
uniquePath, ok := req.Context().Value("uniquePath").(string)
uniquePath, ok := req.Context().Value(jutils.ReqUniquePath{}).(string)
if !ok {
return ""
}
Expand Down
3 changes: 3 additions & 0 deletions jutils/types.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package jutils

type ReqUniquePath struct{}

0 comments on commit 55132b0

Please sign in to comment.