[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:
parent
640db34ff5
commit
ad9b87840e
4
morty.go
4
morty.go
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user