[enh] add more verbose debug messages

git-svn-id: file:///srv/svn/repo/yukari/trunk@129 f3bd38d9-da89-464d-a02a-eb04e43141b5
This commit is contained in:
asciimoo 2020-07-14 21:24:04 +00:00
parent 640db34ff5
commit ad9b87840e

View File

@ -342,7 +342,7 @@ func (p *Proxy) RequestHandler(ctx *fasthttp.RequestCtx) {
requestURIStr := string(requestURI)
if cfg.Debug {
log.Println("getting", requestURIStr)
log.Println(string(ctx.Method()), requestURIStr)
}
req.SetRequestURI(requestURIStr)
@ -421,7 +421,7 @@ func (p *Proxy) RequestHandler(ctx *fasthttp.RequestCtx) {
} else {
// deny access to forbidden content type
// HTTP status code 403 : Forbidden
p.serveMainPage(ctx, 403, errors.New("forbidden content type"))
p.serveMainPage(ctx, 403, errors.New("forbidden content type "+parsedURI.String()))
return
}
}