diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 464956b..d361987 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -22,7 +22,7 @@ jobs: nim-version: # - 1.6.0 - - stable + # - stable - devel steps: diff --git a/src/scorper/http/streamserver.nim b/src/scorper/http/streamserver.nim index 6c52fd2..04fb7da 100644 --- a/src/scorper/http/streamserver.nim +++ b/src/scorper/http/streamserver.nim @@ -389,7 +389,7 @@ proc fileGuard(req: ImpRequest, filepath: string): Future[Option[FileInfo]] {.as await req.respError(Http403) return none(FileInfo) if req.headers.hasKey("If-Modified-Since"): - var ifModifiedSince: Time + var ifModifiedSince: times.Time try: ifModifiedSince = parseTime(req.headers["If-Modified-Since"], HttpDateFormat, utc()) except CatchableError: @@ -399,7 +399,7 @@ proc fileGuard(req: ImpRequest, filepath: string): Future[Option[FileInfo]] {.as await req.respStatus(Http304) return none(FileInfo) elif req.headers.hasKey("If-Unmodified-Since"): - var ifUnModifiedSince: Time + var ifUnModifiedSince: times.Time try: ifUnModifiedSince = parseTime(req.headers["If-Unmodified-Since"], HttpDateFormat, utc()) except CatchableError: