From 995a20baa7b87580f3555390b9ff0bf996ebff3b Mon Sep 17 00:00:00 2001 From: Max Leske Date: Sun, 29 Oct 2023 14:26:44 +0100 Subject: [PATCH] Use #greaseAsByteArray when computing etag Fixes #1383 --- .../WAAbstractFileLibrary.class/instance/entityTagFor..st | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repository/Seaside-Core.package/WAAbstractFileLibrary.class/instance/entityTagFor..st b/repository/Seaside-Core.package/WAAbstractFileLibrary.class/instance/entityTagFor..st index 6e6237034..e4fa372a3 100644 --- a/repository/Seaside-Core.package/WAAbstractFileLibrary.class/instance/entityTagFor..st +++ b/repository/Seaside-Core.package/WAAbstractFileLibrary.class/instance/entityTagFor..st @@ -3,7 +3,7 @@ entityTagFor: aStringOrByteArray | hash base64 | hash := GRPlatform current secureHashFor: aStringOrByteArray. "etags have to be delimited by double quotes" - base64 := GRPlatform current base64Encode: hash asByteArray. + base64 := GRPlatform current base64Encode: hash greaseAsByteArray. ^ String new: base64 size + 2 streamContents: [ :stream | stream nextPut: $";