From 9061d30f0e1003f4c46b1995406ea24d2e9cf189 Mon Sep 17 00:00:00 2001 From: Murderlon Date: Wed, 20 Sep 2023 21:39:14 +0200 Subject: [PATCH] Small readme tweak --- readme.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index ad15d7b..c152f40 100644 --- a/readme.md +++ b/readme.md @@ -30,14 +30,15 @@ integrable in any Node.js server (even a front-end framework like Next.js). camomile works together with [`rehype-github-image`][], which does the following at build time: -1. The original URL in the content is parsed. +1. Finds all insecure HTTP image URLs. 2. An [HMAC][] signature of the URL is generated. 3. The URL and HMAC are encoded. 4. The encoded URL and HMAC are placed into the expected format, creating the signed URL. 5. The signed URL replaces the original image URL. -After your web app serves the content to the user, camomile takes over: +After your web app serves the content to the user, +camomile takes over where needed: 1. The client requests the signed URL from camomile. 2. camomile validates the [HMAC][], decodes the URL,