mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-04-25 04:46:24 +02:00
Support proxying images with no provided intermediate cert (#241)
Replace http.DefaultTransport with aia-transport-go to properly handle missing intermediate certs
This commit is contained in:
parent
52f4360543
commit
fd43ff2198
3 changed files with 5 additions and 1 deletions
|
|
@ -35,6 +35,7 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/fcjr/aia-transport-go"
|
||||
"github.com/gregjones/httpcache"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||
|
|
@ -102,7 +103,7 @@ type Proxy struct {
|
|||
// be used.
|
||||
func NewProxy(transport http.RoundTripper, cache Cache) *Proxy {
|
||||
if transport == nil {
|
||||
transport = http.DefaultTransport
|
||||
transport, _ = aia.NewTransport()
|
||||
}
|
||||
if cache == nil {
|
||||
cache = NopCache
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue