0
Fork 0
mirror of https://github.com/willnorris/imageproxy.git synced 2024-12-16 21:56:43 -05:00

Copy header Link for canonical image SEO

fix format
This commit is contained in:
xavren 2016-06-07 12:37:46 -04:00 committed by Xavier RENAUDIN
parent b61992ec51
commit 79369ca8ef

View file

@ -131,6 +131,7 @@ func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) {
copyHeader(w, resp, "Last-Modified") copyHeader(w, resp, "Last-Modified")
copyHeader(w, resp, "Expires") copyHeader(w, resp, "Expires")
copyHeader(w, resp, "Etag") copyHeader(w, resp, "Etag")
copyHeader(w, resp, "Link")
if is304 := check304(r, resp); is304 { if is304 := check304(r, resp); is304 {
w.WriteHeader(http.StatusNotModified) w.WriteHeader(http.StatusNotModified)