X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Rakka.git;a=blobdiff_plain;f=Rakka%2FResource%2FObject.hs;h=1a81e6719dc7d61f7d8e20723b969a3e7ee7b667;hp=6f9bd1a05a1d38213a7ee9907628166c1ff21706;hb=98e508613bb7a50a1f65998ce87f065df957b736;hpb=8d43862784caf5fc187c948c89e7ef58551f5642 diff --git a/Rakka/Resource/Object.hs b/Rakka/Resource/Object.hs index 6f9bd1a..1a81e67 100644 --- a/Rakka/Resource/Object.hs +++ b/Rakka/Resource/Object.hs @@ -63,8 +63,8 @@ handleGetEntity env page = do let lastMod = toClockTime $ pageLastMod page case pageRevision page of - Nothing -> foundTimeStamp lastMod - Just rev -> foundEntity (strongETag $ show rev) lastMod + 0 -> foundTimeStamp lastMod -- 0 はデフォルトページ + rev -> foundEntity (strongETag $ show rev) lastMod setContentType (pageType page) outputLBS (pageContent page)