commit 745946ce1bd7305edef904461b42d2fa7ebcdccb
parent 5d9c78a23108eff4c209b5d544cf6e480ddec7b4
Author: MTRNord <mtrnord1@gmail.com>
Date: Sun, 18 Feb 2018 19:30:36 +0100
Actually apply the Header
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/api/webserver.go b/api/webserver.go
@@ -22,6 +22,7 @@ func Yesterday(w http.ResponseWriter, r *http.Request) {
http.Error(w, err.Error(), http.StatusInternalServerError)
}
w.Header().Set("Content-Type", "application/json")
+ w.Header().Set("API-VERSION", "0.0.0")
w.WriteHeader(http.StatusOK)
w.Write(tweets)
}