mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-05-03 08:42:40 +02:00
add String method to Request
This commit is contained in:
parent
fc093b71eb
commit
b1de3a9dd6
2 changed files with 9 additions and 6 deletions
|
|
@ -95,12 +95,7 @@ func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||
return
|
||||
}
|
||||
|
||||
u := req.URL.String()
|
||||
if req.Options != emptyOptions {
|
||||
u += "#" + req.Options.String()
|
||||
}
|
||||
|
||||
resp, err := p.Client.Get(u)
|
||||
resp, err := p.Client.Get(req.String())
|
||||
if err != nil {
|
||||
msg := fmt.Sprintf("error fetching remote image: %v", err)
|
||||
glog.Error(msg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue