Fix typo in docu of NewURLBuilderFromString()
And one more minor typo. Signed-off-by: Michael Vetter <jubalh@iodoru.org>
This commit is contained in:
parent
f0c93f65a2
commit
084c0bd100
1 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ func NewURLBuilder(root *url.URL, relative bool) *URLBuilder {
|
|||
}
|
||||
}
|
||||
|
||||
// NewURLBuilderFromString workes identically to NewURLBuilder except it takes
|
||||
// NewURLBuilderFromString works identically to NewURLBuilder except it takes
|
||||
// a string argument for the root, returning an error if it is not a valid
|
||||
// url.
|
||||
func NewURLBuilderFromString(root string, relative bool) (*URLBuilder, error) {
|
||||
|
@ -58,7 +58,7 @@ func NewURLBuilderFromRequest(r *http.Request, relative bool) *URLBuilder {
|
|||
scheme = r.URL.Scheme
|
||||
}
|
||||
|
||||
// Handle fowarded headers
|
||||
// Handle forwarded headers
|
||||
// Prefer "Forwarded" header as defined by rfc7239 if given
|
||||
// see https://tools.ietf.org/html/rfc7239
|
||||
if forwarded := r.Header.Get("Forwarded"); len(forwarded) > 0 {
|
||||
|
|
Loading…
Reference in a new issue