only send successful responses to analytics
1 file changed, 0 insertions(+), 3 deletions(-)
changed files
M domain/web/mux.go → domain/web/mux.go
@@ -35,7 +35,6 @@ urlPath = "/go" + r.URL.Path } urlPath, shouldRedirect := website.reader.CanonicalisePath(urlPath) if shouldRedirect { - analytics.WithCountKey(r, "302") http.Redirect(w, r, urlPath, http.StatusFound) return nil@@ -47,8 +46,6 @@ return ihttp.InternalServerError("Error reading file", err) } if file == nil { - analytics.WithCountKey(r, "404") - return ihttp.NotFound("File not found") } analytics.WithCountKey(r, file.Title)