Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
5 changes: 0 additions & 5 deletions .hgignore

This file was deleted.

12 changes: 0 additions & 12 deletions Makefile

This file was deleted.

14 changes: 7 additions & 7 deletions oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (o *OAuth) makeRequest(method, url string, oParams map[string]string, param
default:
return nil, &implementationError{
What: fmt.Sprintf("HTTP method (%s)", method),
Where: "OAuth\xb7makeRequest()",
Where: "OAuth\u00b7makeRequest()",
}
}
return
Expand All @@ -130,7 +130,7 @@ func (o *OAuth) AuthorizationURL() (string, error) {
if o.RequestToken == "" || o.RequestSecret == "" {
return "", &danceError{
What: "attempt to get authorization without credentials",
Where: "OAuth\xb7AuthorizationURL()",
Where: "OAuth\u00b7AuthorizationURL()",
}
}

Expand All @@ -145,7 +145,7 @@ func (o *OAuth) GetAccessToken(verifier string) (err error) {
if o.RequestToken == "" || o.RequestSecret == "" {
return &danceError{
What: "Temporary credentials not avaiable",
Where: "OAuth\xb7GetAccessToken()",
Where: "OAuth\u00b7GetAccessToken()",
}
}

Expand Down Expand Up @@ -193,7 +193,7 @@ func (o *OAuth) parseResponse(status int, body io.Reader, requestType int) error
default:
return &implementationError{
What: "requestType=" + strconv.Itoa(requestType),
Where: "OAuth\xb7parseResponse()",
Where: "OAuth\u00b7parseResponse()",
}
}
return nil
Expand Down Expand Up @@ -270,7 +270,7 @@ func (o *OAuth) sign(request string) (string, error) {
}
return "", &implementationError{
What: fmt.Sprintf("Unknown signature method (%d)", o.SignatureMethod),
Where: "OAuth\xb7sign",
Where: "OAuth\u00b7sign",
}
}

Expand All @@ -282,7 +282,7 @@ func (o *OAuth) Post(url string, params map[string]string) (r *http.Response, er
if !o.Authorized() {
return nil, &danceError{
What: "Not authorized",
Where: "OAuth\xb7PostParams()",
Where: "OAuth\u00b7PostParams()",
}
}

Expand All @@ -295,7 +295,7 @@ func (o *OAuth) Get(url string, params map[string]string) (r *http.Response, err
if !o.Authorized() {
return nil, &danceError{
What: "Not authorized",
Where: "OAuth\xb7PostParams()",
Where: "OAuth\u00b7PostParams()",
}
}

Expand Down