From 6c05076bcf7d988312267ea5599cf47f2138a8cc Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Tue, 28 May 2019 01:40:44 -0400 Subject: comments edited --- handlers.go | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers.go b/handlers.go index 9f1dd8c..edfb333 100644 --- a/handlers.go +++ b/handlers.go @@ -17,7 +17,7 @@ func indexHandler(w http.ResponseWriter, r *http.Request) { etag := fmt.Sprintf("%x", sha256.Sum256([]byte(staticCache.indexMod.String()))) // Take the hex-encoded sha256 sum of the index template's mod time - // to send as an ETag. If an error occured when grabbing the file info, + // to send as an ETag. If an error occurred when grabbing the file info, // the ETag will be empty. w.Header().Set("ETag", "\""+etag+"\"") w.Header().Set("Content-Type", htmlutf8) diff --git a/main.go b/main.go index e9047cc..ff0447e 100644 --- a/main.go +++ b/main.go @@ -44,7 +44,7 @@ func main() { HandlerFunc(apiEndpointHandler) // Using stdlib net/url to validate the input URLs rather than regex. - // Validating a URL with regex is unwieldly + // Validating a URL with regex is unwieldy api.Path("/{format:(?:plain)}/{endpoint:(?:mentions|users|tweets)}"). Queries("url", "{url}", "q", "{query}"). Methods("GET"). -- cgit 1.4.1-2-gfad0