@@ -519,7 +519,7 @@ func WithVersion(version string) RequestOption {
519519// request body.
520520func (c * Client ) NewRequest (method , urlStr string , body interface {}, opts ... RequestOption ) (* http.Request , error ) {
521521 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 )
523523 }
524524
525525 u , err := c .BaseURL .Parse (urlStr )
@@ -565,7 +565,7 @@ func (c *Client) NewRequest(method, urlStr string, body interface{}, opts ...Req
565565// Body is sent with Content-Type: application/x-www-form-urlencoded.
566566func (c * Client ) NewFormRequest (urlStr string , body io.Reader , opts ... RequestOption ) (* http.Request , error ) {
567567 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 )
569569 }
570570
571571 u , err := c .BaseURL .Parse (urlStr )
@@ -597,7 +597,7 @@ func (c *Client) NewFormRequest(urlStr string, body io.Reader, opts ...RequestOp
597597// Relative URLs should always be specified without a preceding slash.
598598func (c * Client ) NewUploadRequest (urlStr string , reader io.Reader , size int64 , mediaType string , opts ... RequestOption ) (* http.Request , error ) {
599599 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 )
601601 }
602602 u , err := c .UploadURL .Parse (urlStr )
603603 if err != nil {
0 commit comments