]> git.ipfire.org Git - dnsbl.git/commitdiff
sources: Fix sending the Etag
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 10 Dec 2025 16:54:41 +0000 (16:54 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 10 Dec 2025 16:54:41 +0000 (16:54 +0000)
Obviously this must be sent in an If-None-Match header.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/dnsbl/sources.py

index e467101f5baa508fb95f4fcd19807409e527634e..e1f476d52fce4940bc6a60e1f838fbb31b848bbe 100644 (file)
@@ -248,7 +248,7 @@ class Source(sqlmodel.SQLModel, database.BackendMixin, table=True):
 
                # If we don't have the timestamp, we will send the ETag
                elif self.etag:
-                       headers["ETag"] = self.etag
+                       headers["If-None-Match"] = self.etag
 
                return headers