commit 3876b295ac52dd1aee654ec1f86b418f7d927854
parent 526fe112f08bf65935c3c3b0dee8a59c5a1d1aef
Author: MTRNord <mtrnord1@gmail.com>
Date: Sat, 17 Feb 2018 13:45:42 +0100
Set Content-Type
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/api/webserver.go b/api/webserver.go
@@ -21,6 +21,7 @@ func Yesterday(w http.ResponseWriter, r *http.Request) {
if err != nil {
http.Error(w, err.Error(), http.StatusInternalServerError)
}
+ w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
w.Write(tweets)
}