@@ -519,7 +519,7 @@ func WithVersion(version string) RequestOption {
519
519
// request body.
520
520
func (c * Client ) NewRequest (method , urlStr string , body interface {}, opts ... RequestOption ) (* http.Request , error ) {
521
521
if ! strings .HasSuffix (c .BaseURL .Path , "/" ) {
522
- return nil , fmt .Errorf ("BaseURL must have a trailing slash, but %q does not" , c .BaseURL )
522
+ return nil , fmt .Errorf ("baseURL must have a trailing slash, but %q does not" , c .BaseURL )
523
523
}
524
524
525
525
u , err := c .BaseURL .Parse (urlStr )
@@ -565,7 +565,7 @@ func (c *Client) NewRequest(method, urlStr string, body interface{}, opts ...Req
565
565
// Body is sent with Content-Type: application/x-www-form-urlencoded.
566
566
func (c * Client ) NewFormRequest (urlStr string , body io.Reader , opts ... RequestOption ) (* http.Request , error ) {
567
567
if ! strings .HasSuffix (c .BaseURL .Path , "/" ) {
568
- return nil , fmt .Errorf ("BaseURL must have a trailing slash, but %q does not" , c .BaseURL )
568
+ return nil , fmt .Errorf ("baseURL must have a trailing slash, but %q does not" , c .BaseURL )
569
569
}
570
570
571
571
u , err := c .BaseURL .Parse (urlStr )
@@ -597,7 +597,7 @@ func (c *Client) NewFormRequest(urlStr string, body io.Reader, opts ...RequestOp
597
597
// Relative URLs should always be specified without a preceding slash.
598
598
func (c * Client ) NewUploadRequest (urlStr string , reader io.Reader , size int64 , mediaType string , opts ... RequestOption ) (* http.Request , error ) {
599
599
if ! strings .HasSuffix (c .UploadURL .Path , "/" ) {
600
- return nil , fmt .Errorf ("UploadURL must have a trailing slash, but %q does not" , c .UploadURL )
600
+ return nil , fmt .Errorf ("uploadURL must have a trailing slash, but %q does not" , c .UploadURL )
601
601
}
602
602
u , err := c .UploadURL .Parse (urlStr )
603
603
if err != nil {
0 commit comments