|
@@ -25,7 +25,8 @@ func buildRouter() *router {
|
|
|
r.GET("/health", handleHealth, true)
|
|
|
r.GET("/favicon.ico", handleFavicon, true)
|
|
|
r.GET("/", withCORS(withSecret(handleProcessing)), false)
|
|
|
- r.OPTIONS("/", withCORS(handleOptions), false)
|
|
|
+ r.HEAD("/", withCORS(handleHead), false)
|
|
|
+ r.OPTIONS("/", withCORS(handleHead), false)
|
|
|
|
|
|
return r
|
|
|
}
|
|
@@ -128,7 +129,7 @@ func handleHealth(reqID string, rw http.ResponseWriter, r *http.Request) {
|
|
|
rw.Write(imgproxyIsRunningMsg)
|
|
|
}
|
|
|
|
|
|
-func handleOptions(reqID string, rw http.ResponseWriter, r *http.Request) {
|
|
|
+func handleHead(reqID string, rw http.ResponseWriter, r *http.Request) {
|
|
|
logResponse(reqID, r, 200, nil, nil, nil)
|
|
|
rw.WriteHeader(200)
|
|
|
}
|