Skip to content

Commit

Permalink
Change function to get URI from ctx
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigodc07 committed Jul 5, 2023
1 parent 36cffd0 commit 4cc55f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/platform/plugins/plugins.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ func (m manager) safeExecute(log restql.Logger, pluginName string, hook string,
}

func (m manager) newTransactionRequest(log restql.Logger, ctx *fasthttp.RequestCtx) restql.TransactionRequest {
uri, err := url.ParseRequestURI(string(ctx.RequestURI()))
uriString := ctx.URI().String()
uri, err := url.ParseRequestURI(uriString)
if err != nil {
log.Error("failed to parse request uri for plugin", err)
}
Expand Down

0 comments on commit 4cc55f6

Please sign in to comment.