fix some typos

Signed-off-by: bin liu <liubin0329@gmail.com>
This commit is contained in:
bin liu
2016-06-22 17:40:52 +08:00
parent 48f2b11c48
commit fd27cd47f7
14 changed files with 17 additions and 17 deletions

View File

@@ -573,7 +573,7 @@ func (r *Request) URL() *url.URL {
if len(r.resource) != 0 {
p = path.Join(p, strings.ToLower(r.resource))
}
// Join trims trailing slashes, so preserve r.pathPrefix's trailing slash for backwards compat if nothing was changed
// Join trims trailing slashes, so preserve r.pathPrefix's trailing slash for backwards compatibility if nothing was changed
if len(r.resourceName) != 0 || len(r.subpath) != 0 || len(r.subresource) != 0 {
p = path.Join(p, r.resourceName, r.subresource, r.subpath)
}