From b811a620c35eb98464fa3b45120c87eb8ae4b902 Mon Sep 17 00:00:00 2001 From: fatedier Date: Mon, 26 Jun 2017 22:24:47 +0800 Subject: [PATCH] vhost: fix 404 page --- utils/vhost/resource.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/vhost/resource.go b/utils/vhost/resource.go index 6189b35a..ed8149c6 100644 --- a/utils/vhost/resource.go +++ b/utils/vhost/resource.go @@ -49,9 +49,10 @@ Please try again later.

func notFoundResponse() *http.Response { header := make(http.Header) header.Set("server", "frp/"+version.Full()) + header.Set("Content-Type", "text/html") res := &http.Response{ Status: "Not Found", - StatusCode: 400, + StatusCode: 404, Proto: "HTTP/1.0", ProtoMajor: 1, ProtoMinor: 0,