Skip to content

Commit

Permalink
Fix: No hash available was handled wrong
Browse files Browse the repository at this point in the history
  • Loading branch information
simar0at committed Jun 20, 2024
1 parent b125a77 commit 6d2c36f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vicav.xqm
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function vicav:project_config() {
then xs:string(collection('prerendered_json')//json/ETag/text())
else ()
, $hashBrowser := request:header('If-None-Match', '')
return if ($hash = $hashBrowser) then api-problem:return_problem(prof:current-ns(),
return if ($hash and ($hash = $hashBrowser)) then api-problem:return_problem(prof:current-ns(),
<problem xmlns="urn:ietf:rfc:7807">
<type>https://tools.ietf.org/html/rfc7231#section-6</type>
<title>{$api-problem:codes_to_message(304)}</title>
Expand Down

0 comments on commit 6d2c36f

Please sign in to comment.