From eac15559ac3a0ba61a6b2e833c9a16c9bfd0b4a4 Mon Sep 17 00:00:00 2001 From: mkwcat Date: Sun, 24 Dec 2023 15:59:05 -0500 Subject: [PATCH] NAS: Add more headers to conntest --- nas/conntest.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nas/conntest.go b/nas/conntest.go index 91b5628..034e5bf 100644 --- a/nas/conntest.go +++ b/nas/conntest.go @@ -16,9 +16,12 @@ func handleConnectionTest(w http.ResponseWriter) { response += ` This is test.html page` + "\n" response += ` ` + "\n" response += ` ` + "\n" + response += ` ` - w.Header().Set("Content-Type", "text/html") + w.Header().Set("Content-type", "text/html") w.Header().Set("Content-Length", strconv.Itoa(len(response))) + w.Header().Set("X-Organization", "Nintendo") + w.Header().Set("Connection", "Keep-Alive") w.WriteHeader(200) w.Write([]byte(response)) }