Merge pull request #9990 from hqhq/fix_minor_type

registry: fix minor typo
Upstream-commit: cb4ea2c778eb022475e5bcd9305176e7b8413fad
Component: engine
This commit is contained in:
Doug Davis
2015-01-12 13:32:16 -05:00

View File

@ -584,7 +584,7 @@ func (r *Session) SearchRepositories(term string) (*SearchResults, error) {
}
defer res.Body.Close()
if res.StatusCode != 200 {
return nil, utils.NewHTTPRequestError(fmt.Sprintf("Unexepected status code %d", res.StatusCode), res)
return nil, utils.NewHTTPRequestError(fmt.Sprintf("Unexpected status code %d", res.StatusCode), res)
}
result := new(SearchResults)
err = json.NewDecoder(res.Body).Decode(result)