|
@@ -241,16 +241,16 @@ func (h *httpHandler) ServeHTTP(rw http.ResponseWriter, r *http.Request) {
|
|
panic(errInvalidMethod)
|
|
panic(errInvalidMethod)
|
|
}
|
|
}
|
|
|
|
|
|
- if !checkSecret(r) {
|
|
|
|
- panic(errInvalidSecret)
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
if r.URL.RequestURI() == healthPath {
|
|
if r.URL.RequestURI() == healthPath {
|
|
rw.WriteHeader(200)
|
|
rw.WriteHeader(200)
|
|
rw.Write(imgproxyIsRunningMsg)
|
|
rw.Write(imgproxyIsRunningMsg)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if !checkSecret(r) {
|
|
|
|
+ panic(errInvalidSecret)
|
|
|
|
+ }
|
|
|
|
+
|
|
ctx := context.Background()
|
|
ctx := context.Background()
|
|
|
|
|
|
if newRelicEnabled {
|
|
if newRelicEnabled {
|