Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vendor net url #136

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
1 change: 1 addition & 0 deletions internal/net/url/README
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
net/url from commit e6ebbefaf848604c8df3e2a58e146948b03e608b
Loading