mirror of
https://github.com/imgproxy/imgproxy.git
synced 2024-11-24 08:12:38 +02:00
Respond with 404 and a single space to /favicon.ico
requests
This commit is contained in:
parent
54e5f0fee2
commit
11c6de9950
@ -108,7 +108,10 @@ func (r *Router) ServeHTTP(rw http.ResponseWriter, req *http.Request) {
|
||||
|
||||
if req.URL.Path == r.faviconRoute {
|
||||
// TODO: Add a real favicon maybe?
|
||||
rw.WriteHeader(200)
|
||||
rw.Header().Set("Content-Type", "text/plain")
|
||||
rw.WriteHeader(404)
|
||||
// Write a single byte to make AWS Lambda happy
|
||||
rw.Write([]byte{' '})
|
||||
return
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user