Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
/coder-v1-cliPublic archive

bug: fix an issue where query parameters weren't being added to the r…#219

Merged
sreya merged 1 commit intomasterfromfix-org-user-envs
Jan 15, 2021
Merged
Changes fromall 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
7 changes: 6 additions & 1 deletioncoder-sdk/request.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -27,6 +27,11 @@ func (c Client) request(ctx context.Context, method, path string, in interface{}
if config.BaseURLOverride != nil {
url = *config.BaseURLOverride
}
if config.Query != nil {
url.RawQuery = config.Query.Encode()
}

url.Path = path

// If we have incoming data, encode it as json.
var payload io.Reader
Expand All@@ -39,7 +44,7 @@ func (c Client) request(ctx context.Context, method, path string, in interface{}
}

// Create the http request.
req, err := http.NewRequestWithContext(ctx, method, url.String()+path, payload)
req, err := http.NewRequestWithContext(ctx, method, url.String(), payload)
if err != nil {
return nil, xerrors.Errorf("create request: %w", err)
}
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp