Merge pull request #19 from RAnders00/patch-1

Fix response encoding
This commit is contained in:
Daniel Pasch 2019-01-24 19:09:18 +01:00 committed by GitHub
commit badd8fd622
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -187,7 +187,7 @@ func parseFromTo(from, to string, limit float64) (time.Time, time.Time, error) {
}
func writeTextResponse(c echo.Context, cLog *chatLog) error {
c.Response().Header().Set(echo.HeaderContentType, echo.MIMETextPlain)
c.Response().Header().Set(echo.HeaderContentType, echo.MIMETextPlainCharsetUTF8)
c.Response().WriteHeader(http.StatusOK)
for _, cMessage := range cLog.Messages {