Author SHA1 Message Date
klemek 5e5147251f chore: release 1.2.4
Python Lint CI / ruff (push) Successful in 1m8s
Docker CI / docker-build (push) Successful in 2m2s
Python Lint CI / ruff-format-check (push) Successful in 1m40s
Python Lint CI / ty (push) Successful in 1m44s
Python Test CI / coverage (push) Successful in 2m2s
2026-05-04 23:02:32 +02:00
klemek 3fe33cb348 fix: sanitize requestline
Docker CI / docker-build (push) Has been cancelled
Python Lint CI / ruff (push) Has been cancelled
Python Lint CI / ruff-format-check (push) Has been cancelled
Python Lint CI / ty (push) Successful in 55s
Python Test CI / coverage (push) Has been cancelled
2026-05-04 23:02:15 +02:00
klemek 65c6145022 chore: release 1.2.3
Python Test CI / coverage (push) Successful in 1m34s
Python Lint CI / ruff (push) Successful in 1m16s
Docker CI / docker-build (push) Successful in 1m51s
Python Lint CI / ruff-format-check (push) Successful in 1m2s
Python Lint CI / ty (push) Successful in 1m41s
2026-05-04 22:53:29 +02:00
klemek 4af15b082d fix: fix invalid crontab 2026-05-04 22:53:05 +02:00
4 changed files with 15 additions and 5 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
# do daily/weekly/monthly maintenance
# min hour day month weekday command
0 3 * * 1 /app/main.py renew
0 3 * * 1 stapler renew
+1 -1
View File
@@ -1,6 +1,6 @@
[project]
name = "stapler"
version = "1.2.2"
version = "1.2.4"
description = "Static pages as simple as a gzip file"
requires-python = ">=3.14"
dependencies = [
+12 -2
View File
@@ -102,7 +102,12 @@ class BaseHandler(abc.ABC, http.server.BaseHTTPRequestHandler):
code = color + str(code.value) + logs.TermColor.RESET
if size == "" and self.out_size > 0:
size = str(self.out_size)
args = (code, self.address_string(), self.host, self.requestline)
args = (
code,
self.address_string(),
self.host,
re.sub(r"[^\x00-\x7F]+", "?", self.requestline),
)
fmt = "%s - %s - %s - %s"
if size != "":
args = (*args, size)
@@ -223,7 +228,12 @@ class BaseHandler(abc.ABC, http.server.BaseHTTPRequestHandler):
)
def _pre_log_request(self) -> None: # pragma: no cover
args = ("...", self.address_string(), self.host, self.requestline)
args = (
"...",
self.address_string(),
self.host,
re.sub(r"[^\x00-\x7F]+", "?", self.requestline),
)
fmt = "%s - %s - %s - %s"
if self.in_size > 0:
args = (*args, self.in_size)
Generated
+1 -1
View File
@@ -203,7 +203,7 @@ wheels = [
[[package]]
name = "stapler"
version = "1.2.2"
version = "1.2.4"
source = { editable = "." }
dependencies = [
{ name = "requests" },