summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-05-28 01:40:44 -0400
committerBen Morrison <ben@gbmor.dev>2019-05-28 01:40:44 -0400
commit6c05076bcf7d988312267ea5599cf47f2138a8cc (patch)
tree8866842991ad75d7abd14abe2446b0e092c559ba
parentc3fcb4597dfa86e233811d783d35fbf5fb603833 (diff)
downloadgetwtxt-6c05076bcf7d988312267ea5599cf47f2138a8cc.tar.gz
comments edited
-rw-r--r--handlers.go2
-rw-r--r--main.go2
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").