Skip to content

Commit

Permalink
o
Browse files Browse the repository at this point in the history
  • Loading branch information
bung87 committed Jun 3, 2023
1 parent 7f60176 commit 5142075
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

nim-version:
# - 1.6.0
- stable
# - stable
- devel

steps:
Expand Down
4 changes: 2 additions & 2 deletions src/scorper/http/streamserver.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 5142075

Please sign in to comment.