% and # in the URL
This commit is contained in:
parent
7ea52a8e4f
commit
c49c91989e
@ -8,6 +8,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func (c *Client) req(method, path string, body io.Reader, intercept func(*http.Request)) (req *http.Response, err error) {
|
func (c *Client) req(method, path string, body io.Reader, intercept func(*http.Request)) (req *http.Response, err error) {
|
||||||
|
path = strings.Replace(path, "%", "%25", -1)
|
||||||
|
path = strings.Replace(path, "#", "%23", -1)
|
||||||
r, err := http.NewRequest(method, Join(c.root, path), body)
|
r, err := http.NewRequest(method, Join(c.root, path), body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Loading…
Reference in New Issue
Block a user