diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2018-03-08 16:43:45 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2018-03-08 16:43:45 +0300 |
commit | acdbedc1dcb8bf0f06780f3e735d1e963340b94e (patch) | |
tree | 7cafd9c4b6d893acf7f95109c6ab0dcbcab0fb76 /domain.go | |
parent | d5ad52d3d0535e022d9e87cc4cb03bdf722b2acd (diff) |
Remove noisy debug logs
Diffstat (limited to 'domain.go')
-rw-r--r-- | domain.go | 5 |
1 files changed, 0 insertions, 5 deletions
@@ -112,8 +112,6 @@ func (d *domain) serveFile(w http.ResponseWriter, r *http.Request, origPath stri w.Header().Set("Cache-Control", "max-age=600") w.Header().Set("Expires", time.Now().Add(10*time.Minute).Format(time.RFC1123)) - fmt.Println("Serving", fullPath, "for", r.URL.Path) - // ServeContent sets Content-Type for us http.ServeContent(w, r, origPath, fi.ModTime(), file) return nil @@ -136,9 +134,6 @@ func (d *domain) serveCustomFile(w http.ResponseWriter, r *http.Request, code in setContentType(w, origPath) w.Header().Set("Content-Length", strconv.FormatInt(fi.Size(), 10)) - - // Serve the file - fmt.Println("Serving", fullPath, "for", r.URL.Path, "with", code) w.WriteHeader(code) if r.Method != "HEAD" { |