Skip to content

Commit

Permalink
improve http prefix trimming
Browse files Browse the repository at this point in the history
  • Loading branch information
samotarnik committed Jul 5, 2021
1 parent 291a52e commit 74293da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (c *ApiClient) authenticatedPostRequest(responseObject interface{}, urlPath
}

// message construction
msg := xAuth + method + strings.TrimPrefix(url_, "https://")
msg := xAuth + method + strings.TrimPrefix(strings.TrimPrefix(url_, "https://"), "http://")
if queryParams == nil {
msg = msg + nonce + timestamp_ + authVersion // TODO: apparently, contentType must be omitted here?
} else {
Expand Down

0 comments on commit 74293da

Please sign in to comment.