Skip to content

Commit

Permalink
Merge pull request #74 from americanas-tech/fix-request-uri-without-host
Browse files Browse the repository at this point in the history
Change function to get URI from ctx
  • Loading branch information
rodrigodc07 authored Jul 5, 2023
2 parents 36cffd0 + 4cc55f6 commit ff30228
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 ff30228

Please sign in to comment.