Skip to content

Commit 94a869a

Browse files
committed
fix: ignore render loop headers and bump version
1 parent 1de0a91 commit 94a869a

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "upstash-workflow"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
description = "Python SDK for Upstash Workflow"
55
license = "MIT"
66
authors = ["Upstash <[email protected]>"]

upstash_workflow/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.1.2"
1+
__version__ = "0.1.3"
22

33
from upstash_workflow.context.context import WorkflowContext
44
from upstash_workflow.serve.serve import serve

upstash_workflow/workflow_requests.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,16 @@ def _recreate_user_headers(headers: Dict[str, str]) -> Dict[str, str]:
9696
if not any(
9797
[
9898
header_lower.startswith("upstash-workflow-"),
99+
# https://vercel.com/docs/edge-network/headers/request-headers#x-vercel-id
99100
header_lower.startswith("x-vercel-"),
100101
header_lower.startswith("x-forwarded-"),
102+
# https://blog.cloudflare.com/preventing-request-loops-using-cdn-loop/
101103
header_lower == "cf-connecting-ip",
104+
header_lower == "cdn-loop",
105+
header_lower == "cf-ew-via",
106+
header_lower == "cf-ray",
107+
# For Render https://render.com
108+
header_lower == "render-proxy-ttl"
102109
]
103110
):
104111
filtered_headers[header] = value

0 commit comments

Comments
 (0)