mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-04-29 14:56:25 +02:00
there's no need for Options to be a pointer
This commit is contained in:
parent
c5b279b947
commit
4a5f24e4ec
4 changed files with 49 additions and 49 deletions
3
proxy.go
3
proxy.go
|
|
@ -23,7 +23,6 @@ import (
|
|||
"io/ioutil"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"reflect"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
|
|
@ -79,7 +78,7 @@ func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
|
||||
u := req.URL.String()
|
||||
if req.Options != nil && !reflect.DeepEqual(req.Options, emptyOptions) {
|
||||
if req.Options != emptyOptions {
|
||||
u += "#" + req.Options.String()
|
||||
}
|
||||
resp, err := p.Client.Get(u)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue