mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-06-02 15:55:14 +02:00
first pass at supporting a default base URL
this allows remote images to be specified as relative URLs, relative to the `DefaultBaseURL` field. Fixes #15.
This commit is contained in:
parent
dbac2f8063
commit
ad54d71881
5 changed files with 35 additions and 3 deletions
|
|
@ -150,7 +150,7 @@ func TestNewRequest(t *testing.T) {
|
|||
continue
|
||||
}
|
||||
|
||||
r, err := NewRequest(req)
|
||||
r, err := NewRequest(req, nil)
|
||||
if tt.ExpectError {
|
||||
if err == nil {
|
||||
t.Errorf("NewRequest(%v) did not return expected error", req)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue