@@ -33,7 +33,7 @@ var mimeRe = regexp.MustCompile(acceptableRemoteMIME)
3333func MakeRemoteContext (remoteURL string , contentTypeHandlers map [string ]func (io.ReadCloser ) (io.ReadCloser , error )) (ModifiableContext , error ) {
3434 f , err := httputils .Download (remoteURL )
3535 if err != nil {
36- return nil , fmt .Errorf ("Error downloading remote context %s: %v" , remoteURL , err )
36+ return nil , fmt .Errorf ("error downloading remote context %s: %v" , remoteURL , err )
3737 }
3838 defer f .Body .Close ()
3939
@@ -44,7 +44,7 @@ func MakeRemoteContext(remoteURL string, contentTypeHandlers map[string]func(io.
4444
4545 contentType , contextReader , err = inspectResponse (contentType , f .Body , clen )
4646 if err != nil {
47- return nil , fmt .Errorf ("Error detecting content type for remote %s: %v" , remoteURL , err )
47+ return nil , fmt .Errorf ("error detecting content type for remote %s: %v" , remoteURL , err )
4848 }
4949 defer contextReader .Close ()
5050
@@ -118,7 +118,7 @@ func inspectResponse(ct string, r io.ReadCloser, clen int64) (string, io.ReadClo
118118 preamble := make ([]byte , plen , plen )
119119 rlen , err := r .Read (preamble )
120120 if rlen == 0 {
121- return ct , r , errors .New ("Empty response" )
121+ return ct , r , errors .New ("empty response" )
122122 }
123123 if err != nil && err != io .EOF {
124124 return ct , r , err
0 commit comments