Skip to content

Commit

Permalink
fix path params
Browse files Browse the repository at this point in the history
  • Loading branch information
bnewbold committed Apr 12, 2024
1 parent 666247a commit c8d0853
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bskyweb/cmd/embedr/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,12 @@ func (srv *Server) WebPostEmbed(c echo.Context) error {
ctx := c.Request().Context()

// sanity check arguments. don't 4xx, just let app handle if not expected format
rkeyParam := c.QueryParam("rkey")
rkeyParam := c.Param("rkey")
rkey, err := syntax.ParseRecordKey(rkeyParam)
if err != nil {
return c.String(http.StatusBadRequest, fmt.Sprintf("Invalid RecordKey: %v", err))
}
didParam := c.QueryParam("did")
didParam := c.Param("did")
did, err := syntax.ParseDID(didParam)
if err != nil {
return c.String(http.StatusBadRequest, fmt.Sprintf("Invalid DID: %v", err))
Expand Down

0 comments on commit c8d0853

Please sign in to comment.