Cleaning up
This commit is contained in:
parent
fdc6c763da
commit
59e7ae16d4
@ -63,8 +63,6 @@ func main() {
|
||||
r.RequestURI = ""
|
||||
HTTPLogger(r, http.StatusOK)
|
||||
} else {
|
||||
r.URL.Host = ""
|
||||
r.URL.Scheme = ""
|
||||
HTTPLogger(r, http.StatusBadRequest)
|
||||
}
|
||||
},
|
||||
@ -113,18 +111,3 @@ func HTTPLogger(r *http.Request, status int) {
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
record := &ApacheLogRecord{
|
||||
ResponseWriter: rw,
|
||||
ip: clientIP,
|
||||
time: time.Time{},
|
||||
method: r.Method,
|
||||
uri: r.RequestURI,
|
||||
protocol: r.Proto,
|
||||
status: http.StatusOK,
|
||||
referer: referer,
|
||||
userAgent: userAgent,
|
||||
elapsedTime: time.Duration(0),
|
||||
}
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user