"net/http" | "net/http" | ||||
"path" | "path" | ||||
"strings" | "strings" | ||||
"github.com/Sirupsen/logrus" | |||||
) | ) | ||||
// Static serves as file server for static assets, | // Static serves as file server for static assets, | ||||
} | } | ||||
http.ServeContent(w, r, filename, stat.ModTime(), file) | http.ServeContent(w, r, filename, stat.ModTime(), file) | ||||
var header = w.Header() | |||||
for key, values := range header { | |||||
logrus.Infof("%s: %v", key, values) | |||||
} | |||||
}) | }) | ||||
} | } | ||||
} | } |