Skip to content

Commit

Permalink
Fix exception if If-Modified-Since header is present in request
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangmm committed Jan 27, 2024
1 parent 5d0a7ba commit b5126ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/lib/api/caching.xql
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ declare function cutil:check-last-modified($request as map(*), $nodes as node()*
then (response:set-header("Last-Modified", cutil:format-http-date(head($lastModified))))
else (),
if ($shouldReturn304) then
router:response(304, "", "")
router:response(304, "")
else
$callback($request, $nodes)
)
Expand Down

0 comments on commit b5126ab

Please sign in to comment.