mirror of
https://codeberg.org/gigirassy/asciiwebserv
synced 2026-08-30 15:37:40 +00:00
larger default width for sake of legibility
This commit is contained in:
@@ -24,7 +24,7 @@ import (
|
||||
const (
|
||||
defaultListen = ":3333"
|
||||
defaultDir = "./images"
|
||||
defaultWidth = 80
|
||||
defaultWidth = 130
|
||||
cacheSuffixFmt = ".ansi.%d.txt"
|
||||
allowedUA = "curl"
|
||||
maxImageDim = 2000
|
||||
@@ -123,7 +123,7 @@ func rootHandler(w http.ResponseWriter, r *http.Request) {
|
||||
}
|
||||
defer f.Close()
|
||||
|
||||
w.Header().Set("Content-Type", "text/plain; charset=utf-8")
|
||||
w.Header().Set("Content-Type", "text/plain; charset=utf8")
|
||||
w.WriteHeader(http.StatusOK)
|
||||
if _, err := io.Copy(w, f); err != nil {
|
||||
log.Printf("write error: %v", err)
|
||||
|
||||
Reference in New Issue
Block a user