Skip to content

Commit

Permalink
fsthttp: use less strict net/url parser
Browse files Browse the repository at this point in the history
  • Loading branch information
dgryski committed Sep 3, 2024
1 parent 4ab7035 commit 2b5208a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion fsthttp/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"time"

"github.com/fastly/compute-sdk-go/internal/abi/fastly"
intneturl "github.com/fastly/compute-sdk-go/internal/net/url"
)

// RequestLimits are the limits for the components of an HTTP request.
Expand Down Expand Up @@ -149,10 +150,12 @@ func newClientRequest() (*Request, error) {
return nil, fmt.Errorf("get URI: %w", err)
}

u, err := url.ParseRequestURI(uri)
intu, err := intneturl.ParseRequestURI(uri)
if err != nil {
return nil, fmt.Errorf("parse URI: %w", err)
}
uval := url.URL(*intu)
u := &uval

proto, major, minor, err := abiReq.GetVersion()
if err != nil {
Expand Down

0 comments on commit 2b5208a

Please sign in to comment.