mirror of
https://github.com/fatedier/frp.git
synced 2025-01-22 17:42:09 +00:00
vhost: fix 404 page
This commit is contained in:
parent
07fe05a9d5
commit
b811a620c3
@ -49,9 +49,10 @@ Please try again later.</p>
|
|||||||
func notFoundResponse() *http.Response {
|
func notFoundResponse() *http.Response {
|
||||||
header := make(http.Header)
|
header := make(http.Header)
|
||||||
header.Set("server", "frp/"+version.Full())
|
header.Set("server", "frp/"+version.Full())
|
||||||
|
header.Set("Content-Type", "text/html")
|
||||||
res := &http.Response{
|
res := &http.Response{
|
||||||
Status: "Not Found",
|
Status: "Not Found",
|
||||||
StatusCode: 400,
|
StatusCode: 404,
|
||||||
Proto: "HTTP/1.0",
|
Proto: "HTTP/1.0",
|
||||||
ProtoMajor: 1,
|
ProtoMajor: 1,
|
||||||
ProtoMinor: 0,
|
ProtoMinor: 0,
|
||||||
|
Loading…
Reference in New Issue
Block a user