ensure not from/to query
This commit is contained in:
parent
9adf74b5c2
commit
6aa7cd3abf
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ func (s *Server) routeLogs(w http.ResponseWriter, r *http.Request) bool {
|
|||
currentYear := fmt.Sprintf("%d", int(time.Now().Year()))
|
||||
currentMonth := fmt.Sprintf("%d", int(time.Now().Month()))
|
||||
|
||||
if request.time.year < currentYear || (request.time.year == currentYear && request.time.month < currentMonth) {
|
||||
if (request.time.year != "" && request.time.month != "") && (request.time.year < currentYear || (request.time.year == currentYear && request.time.month < currentMonth)) {
|
||||
writeCacheControl(w, r, time.Hour*8760)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue