From 8a68f2699f810ca24dc09c3ddedcc324610e3958 Mon Sep 17 00:00:00 2001 From: Allen <57342162+Allen5288@users.noreply.github.com> Date: Sun, 22 Nov 2026 11:29:32 +1100 Subject: [PATCH 01/19] Fix empty cookie domain/path being sent as empty string --- workers/azure_functions_worker/bindings/datumdef.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/workers/azure_functions_worker/bindings/datumdef.py b/workers/azure_functions_worker/bindings/datumdef.py index 0e2a9c538..8a32b8660 100644 --- a/workers/azure_functions_worker/bindings/datumdef.py +++ b/workers/azure_functions_worker/bindings/datumdef.py @@ -241,10 +241,11 @@ def parse_to_rpc_http_cookie_list(cookies: Optional[List[SimpleCookie]]): protos.RpcHttpCookie(name=name, value=cookie_entity.value, domain=to_nullable_string( - cookie_entity['domain'], + cookie_entity['domain'] or None, 'cookie.domain'), path=to_nullable_string( - cookie_entity['path'], 'cookie.path'), + cookie_entity['path'] or None, + 'cookie.path'), expires=to_nullable_timestamp( parse_cookie_attr_expires( cookie_entity), 'cookie.expires'), @@ -298,4 +299,4 @@ def parse_cookie_attr_same_site(cookie_entity): except Exception: return same_site - return same_site + return same_site From c78ce30ddda19031d0ea168c75d72228dc496423 Mon Sep 17 00:00:00 2001 From: Allen <57342162+Allen5288@users.noreply.github.com> Date: Sun, 22 Nov 2026 11:30:28 +1100 Subject: [PATCH 02/19] Fix empty cookie domain/path being sent as empty string --- runtimes/v1/azure_functions_runtime_v1/bindings/datumdef.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runtimes/v1/azure_functions_runtime_v1/bindings/datumdef.py b/runtimes/v1/azure_functions_runtime_v1/bindings/datumdef.py index a4a11cc8e..ab93a7fae 100644 --- a/runtimes/v1/azure_functions_runtime_v1/bindings/datumdef.py +++ b/runtimes/v1/azure_functions_runtime_v1/bindings/datumdef.py @@ -166,11 +166,11 @@ def parse_to_rpc_http_cookie_list(cookies: Optional[List[SimpleCookie]], protos) protos.RpcHttpCookie(name=name, value=cookie_entity.value, domain=to_nullable_string( - cookie_entity['domain'], + cookie_entity['domain'] or None, 'cookie.domain', protos), path=to_nullable_string( - cookie_entity['path'], + cookie_entity['path'] or None, 'cookie.path', protos), expires=to_nullable_timestamp( @@ -230,4 +230,4 @@ def parse_cookie_attr_same_site(cookie_entity, protos): except Exception: return same_site - return same_site + return same_site From aed92a8b52a6a6817f42e13760f03a788b07f84d Mon Sep 17 00:00:00 2001 From: Allen <57342162+Allen5288@users.noreply.github.com> Date: Sun, 22 Nov 2026 11:31:01 +1100 Subject: [PATCH 03/19] Fix empty cookie domain/path being sent as empty string --- runtimes/v2/azure_functions_runtime/bindings/datumdef.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runtimes/v2/azure_functions_runtime/bindings/datumdef.py b/runtimes/v2/azure_functions_runtime/bindings/datumdef.py index d4dbc31cf..9ef518dd4 100644 --- a/runtimes/v2/azure_functions_runtime/bindings/datumdef.py +++ b/runtimes/v2/azure_functions_runtime/bindings/datumdef.py @@ -165,11 +165,11 @@ def parse_to_rpc_http_cookie_list(cookies: Optional[List[SimpleCookie]], protos) protos.RpcHttpCookie(name=name, value=cookie_entity.value, domain=to_nullable_string( - cookie_entity['domain'], + cookie_entity['domain'] or None, 'cookie.domain', protos), path=to_nullable_string( - cookie_entity['path'], + cookie_entity['path'] or None, 'cookie.path', protos), expires=to_nullable_timestamp( @@ -229,4 +229,4 @@ def parse_cookie_attr_same_site(cookie_entity, protos): except Exception: return same_site - return same_site + return same_site From b0f0e20cc26a923fce7bfbceb4b6bb558562b1ba Mon Sep 17 00:00:00 2001 From: Allen <57342162+Allen5288@users.noreply.github.com> Date: Sun, 22 Nov 2026 11:32:29 +1100 Subject: [PATCH 04/19] Fix empty cookie domain/path being sent as empty string Added regression test for handling cookies without a Domain attribute to ensure proper value retention. --- workers/tests/unittests/test_datumref.py | 26 ++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/workers/tests/unittests/test_datumref.py b/workers/tests/unittests/test_datumref.py index 15f7a4054..26c118705 100644 --- a/workers/tests/unittests/test_datumref.py +++ b/workers/tests/unittests/test_datumref.py @@ -1,4 +1,3 @@ - import unittest from http.cookies import SimpleCookie @@ -152,6 +151,29 @@ def test_parse_to_rpc_http_cookie_list_valid(self): self.assertEqual(cookie1, rpc_cookies[0]) self.assertEqual(cookie2, rpc_cookies[1]) + def test_parse_to_rpc_http_cookie_list_no_domain(self): + # Regression test for Azure/azure-functions-python-worker#1794: + # a cookie without a Domain (e.g. `test="hello//world"; Path=/; + # SameSite=lax`) must keep its value intact and must not gain an + # empty `domain=` attribute, so domain is sent as None. + cookies = SimpleCookie('test="hello//world"; Path=/; SameSite=lax') + + cookie = RpcHttpCookie(name="test", + value="hello//world", + domain=None, + path=to_nullable_string("/", "cookie.path"), + expires=None, + secure=to_nullable_bool( + False, 'cookie.secure'), + http_only=to_nullable_bool( + False, 'cookie.httpOnly'), + same_site=parse_cookie_attr_same_site( + {"samesite": "Lax"}), + max_age=None) + + rpc_cookies = parse_to_rpc_http_cookie_list([cookies]) + self.assertEqual(cookie, rpc_cookies[0]) + def test_parse_to_rpc_http_cookie_list_no_cookie(self): datum = Datum( type='http', @@ -163,4 +185,4 @@ def test_parse_to_rpc_http_cookie_list_no_cookie(self): ) self.assertIsNone( - parse_to_rpc_http_cookie_list(datum.value.get('cookies'))) + parse_to_rpc_http_cookie_list(datum.value.get('cookies'))) From 32328997e853c81f49236d1d1122e066139545d1 Mon Sep 17 00:00:00 2001 From: Allen <57342162+Allen5288@users.noreply.github.com> Date: Sun, 22 Nov 2026 11:33:46 +1100 Subject: [PATCH 05/19] Fix empty cookie domain/path being sent as empty string --- workers/tests/unittests/test_datumref.py | 1 + 1 file changed, 1 insertion(+) diff --git a/workers/tests/unittests/test_datumref.py b/workers/tests/unittests/test_datumref.py index 26c118705..6f91fcc82 100644 --- a/workers/tests/unittests/test_datumref.py +++ b/workers/tests/unittests/test_datumref.py @@ -1,3 +1,4 @@ + import unittest from http.cookies import SimpleCookie From 55e85abd628a25029b408b61329810d9772a9ad4 Mon Sep 17 00:00:00 2001 From: Allen <57342162+Allen5288@users.noreply.github.com> Date: Sun, 22 Nov 2026 11:34:36 +1100 Subject: [PATCH 06/19] Fix empty cookie domain/path being sent as empty string Added a regression test for handling cookies without a Domain attribute, ensuring the value remains intact and domain is set to None. --- runtimes/v1/tests/unittests/test_datumdef.py | 26 +++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/runtimes/v1/tests/unittests/test_datumdef.py b/runtimes/v1/tests/unittests/test_datumdef.py index ee1e4a930..c4b9b9522 100644 --- a/runtimes/v1/tests/unittests/test_datumdef.py +++ b/runtimes/v1/tests/unittests/test_datumdef.py @@ -167,6 +167,30 @@ def test_parse_to_rpc_http_cookie_list_valid(self): self.assertEqual(cookie1, rpc_cookies[0]) self.assertEqual(cookie2, rpc_cookies[1]) + def test_parse_to_rpc_http_cookie_list_no_domain(self): + # Regression test for Azure/azure-functions-python-worker#1794: + # a cookie without a Domain (e.g. `test="hello//world"; Path=/; + # SameSite=lax`) must keep its value intact and must not gain an + # empty `domain=` attribute, so domain is sent as None. + cookies = SimpleCookie('test="hello//world"; Path=/; SameSite=lax') + + cookie = protos.RpcHttpCookie(name="test", + value="hello//world", + domain=None, + path=to_nullable_string( + "/", "cookie.path", protos), + expires=None, + secure=to_nullable_bool( + False, 'cookie.secure', protos), + http_only=to_nullable_bool( + False, 'cookie.httpOnly', protos), + same_site=parse_cookie_attr_same_site( + {"samesite": "Lax"}, protos), + max_age=None) + + rpc_cookies = parse_to_rpc_http_cookie_list([cookies], protos) + self.assertEqual(cookie, rpc_cookies[0]) + def test_parse_to_rpc_http_cookie_list_no_cookie(self): datum = Datum( type='http', @@ -178,4 +202,4 @@ def test_parse_to_rpc_http_cookie_list_no_cookie(self): ) self.assertIsNone( - parse_to_rpc_http_cookie_list(datum.value.get('cookies'), protos)) + parse_to_rpc_http_cookie_list(datum.value.get('cookies'), protos)) From f410a7035ff3121af403e283f9f8723ed61b4b45 Mon Sep 17 00:00:00 2001 From: Allen <57342162+Allen5288@users.noreply.github.com> Date: Sun, 22 Nov 2026 11:35:24 +1100 Subject: [PATCH 07/19] Fix empty cookie domain/path being sent as empty string --- runtimes/v2/tests/unittests/test_datumdef.py | 26 +++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/runtimes/v2/tests/unittests/test_datumdef.py b/runtimes/v2/tests/unittests/test_datumdef.py index 8a8d23722..e2e7b0a02 100644 --- a/runtimes/v2/tests/unittests/test_datumdef.py +++ b/runtimes/v2/tests/unittests/test_datumdef.py @@ -167,6 +167,30 @@ def test_parse_to_rpc_http_cookie_list_valid(self): self.assertEqual(cookie1, rpc_cookies[0]) self.assertEqual(cookie2, rpc_cookies[1]) + def test_parse_to_rpc_http_cookie_list_no_domain(self): + # Regression test for Azure/azure-functions-python-worker#1794: + # a cookie without a Domain (e.g. `test="hello//world"; Path=/; + # SameSite=lax`) must keep its value intact and must not gain an + # empty `domain=` attribute, so domain is sent as None. + cookies = SimpleCookie('test="hello//world"; Path=/; SameSite=lax') + + cookie = protos.RpcHttpCookie(name="test", + value="hello//world", + domain=None, + path=to_nullable_string( + "/", "cookie.path", protos), + expires=None, + secure=to_nullable_bool( + False, 'cookie.secure', protos), + http_only=to_nullable_bool( + False, 'cookie.httpOnly', protos), + same_site=parse_cookie_attr_same_site( + {"samesite": "Lax"}, protos), + max_age=None) + + rpc_cookies = parse_to_rpc_http_cookie_list([cookies], protos) + self.assertEqual(cookie, rpc_cookies[0]) + def test_parse_to_rpc_http_cookie_list_no_cookie(self): datum = Datum( type='http', @@ -178,4 +202,4 @@ def test_parse_to_rpc_http_cookie_list_no_cookie(self): ) self.assertIsNone( - parse_to_rpc_http_cookie_list(datum.value.get('cookies'), protos)) + parse_to_rpc_http_cookie_list(datum.value.get('cookies'), protos)) From ed038c697f9e57bef4c09b475e631910ee1abc99 Mon Sep 17 00:00:00 2001 From: Allen <57342162+Allen5288@users.noreply.github.com> Date: Sun, 22 Nov 2026 11:36:21 +1100 Subject: [PATCH 08/19] Fix empty cookie domain/path being sent as empty string --- workers/r2p2/bridge/bridge.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/workers/r2p2/bridge/bridge.py b/workers/r2p2/bridge/bridge.py index a0a8dedda..e101523c9 100644 --- a/workers/r2p2/bridge/bridge.py +++ b/workers/r2p2/bridge/bridge.py @@ -839,7 +839,8 @@ def _flatten_cookies(cookies): without any Python protobuf on the native path. Mirrors the runtime's ``parse_to_rpc_http_cookie_list`` semantics: ``domain`` - and ``path`` are always emitted (possibly empty), ``secure``/``http_only`` are + and ``path`` are emitted when set (``None`` when unset, so the host does + not render an empty ``domain=``/``path=`` attribute), ``secure``/``http_only`` are always booleans, ``same_site`` is pre-resolved to the RpcHttpCookie.SameSite enum integer (None=0, Lax=1, Strict=2, 'none'->ExplicitNone=3), ``expires`` is epoch seconds (or None) and ``max_age`` is a float (or None). @@ -878,8 +879,8 @@ def _flatten_cookies(cookies): out.append({ 'name': name, 'value': morsel.value, - 'domain': morsel['domain'] or '', - 'path': morsel['path'] or '', + 'domain': morsel['domain'] or None, + 'path': morsel['path'] or None, 'secure': bool(morsel['secure']), 'http_only': bool(morsel['httponly']), 'same_site': same_site, @@ -977,4 +978,4 @@ def shutdown(): except Exception: pass if _loop is not None: - _loop.call_soon_threadsafe(_loop.stop) + _loop.call_soon_threadsafe(_loop.stop) From 0c32b39b7d8c0fde64884ab680f1966deabe5d09 Mon Sep 17 00:00:00 2001 From: Allen <57342162+Allen5288@users.noreply.github.com> Date: Sun, 22 Nov 2026 11:37:22 +1100 Subject: [PATCH 09/19] Fix empty cookie domain/path being sent as empty string --- workers/r2p2/src/convert.rs | 78 ++++++++++++++++++++++++++++++++----- 1 file changed, 69 insertions(+), 9 deletions(-) diff --git a/workers/r2p2/src/convert.rs b/workers/r2p2/src/convert.rs index 128d69397..c222e52f2 100644 --- a/workers/r2p2/src/convert.rs +++ b/workers/r2p2/src/convert.rs @@ -169,6 +169,22 @@ fn http_out_from_dict(py: Python<'_>, d: &Bound<'_, PyAny>) -> Result { }) } +/// Map an optional cookie string (`domain`/`path`) to the `NullableString` +/// the Host expects: Python `None` or an empty string stays `None`, so the +/// Host leaves the attribute unset instead of rendering `domain=`/`path=`. +fn optional_nullable_string(obj: Bound<'_, PyAny>) -> Result> { + if obj.is_none() { + return Ok(None); + } + let s: String = obj.extract()?; + if s.is_empty() { + return Ok(None); + } + Ok(Some(NullableString { + string: Some(nullable_string::String::Value(s)), + })) +} + /// Build the `RpcHttpCookie` list from the flat cookie dicts the bridge emits. /// /// The bridge (bridge.py `_flatten_cookies`) pre-computes every field as a plain @@ -185,8 +201,11 @@ fn http_cookies_from_list(list_obj: &Bound<'_, PyAny>) -> Result) -> Result Date: Sun, 22 Nov 2026 11:38:12 +1100 Subject: [PATCH 10/19] Fix empty cookie domain/path being sent as empty string --- .../unittest_r2p2/test_bridge_invocation.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/workers/tests/unittest_r2p2/test_bridge_invocation.py b/workers/tests/unittest_r2p2/test_bridge_invocation.py index d56077921..3157a511d 100644 --- a/workers/tests/unittest_r2p2/test_bridge_invocation.py +++ b/workers/tests/unittest_r2p2/test_bridge_invocation.py @@ -337,6 +337,22 @@ def test_flatten_cookies_maps_same_site_times_and_invalid_values(): assert bridge._flatten_cookies(None) == [] +def test_flatten_cookies_issue_1794_value_preserved_and_domain_absent(): + # Regression test for Azure/azure-functions-python-worker#1794: + # `test="hello//world"; Path=/; SameSite=lax` must keep its value + # intact and must not gain an empty `domain=`. + cookies = [SimpleCookie('test="hello//world"; Path=/; SameSite=lax')] + + flattened = bridge._flatten_cookies(cookies) + + assert len(flattened) == 1 + assert flattened[0]["name"] == "test" + assert flattened[0]["value"] == "hello//world" + assert flattened[0]["domain"] is None + assert flattened[0]["path"] == "/" + assert flattened[0]["same_site"] == 1 + + def test_datum_to_tuple_flattens_http_outputs(monkeypatch): cookie = _cookie("session", "Strict") datum = _Datum({ @@ -497,4 +513,4 @@ def invocation_request_native(*args): assert result == (True, ("string", "async"), [], None, None) assert captured["async_args"][:6] == ( - "inv", "fid", [], {}, "trace-parent", "trace-state") + "inv", "fid", [], {}, "trace-parent", "trace-state") From 2fa80848970928e6023e2f19f538c24cd5349d79 Mon Sep 17 00:00:00 2001 From: Allen <57342162+Allen5288@users.noreply.github.com> Date: Sun, 22 Nov 2026 11:40:54 +1100 Subject: [PATCH 11/19] Fix empty cookie domain/path being sent as empty string --- workers/azure_functions_worker/bindings/datumdef.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workers/azure_functions_worker/bindings/datumdef.py b/workers/azure_functions_worker/bindings/datumdef.py index 8a32b8660..7e231a1e5 100644 --- a/workers/azure_functions_worker/bindings/datumdef.py +++ b/workers/azure_functions_worker/bindings/datumdef.py @@ -299,4 +299,4 @@ def parse_cookie_attr_same_site(cookie_entity): except Exception: return same_site - return same_site + return same_site From 6ff335e450d952cb1c6273e765e02354ae30b4e4 Mon Sep 17 00:00:00 2001 From: Allen <57342162+Allen5288@users.noreply.github.com> Date: Sun, 22 Nov 2026 11:41:43 +1100 Subject: [PATCH 12/19] Fix empty cookie domain/path being sent as empty string --- runtimes/v1/azure_functions_runtime_v1/bindings/datumdef.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtimes/v1/azure_functions_runtime_v1/bindings/datumdef.py b/runtimes/v1/azure_functions_runtime_v1/bindings/datumdef.py index ab93a7fae..b52b74e8d 100644 --- a/runtimes/v1/azure_functions_runtime_v1/bindings/datumdef.py +++ b/runtimes/v1/azure_functions_runtime_v1/bindings/datumdef.py @@ -230,4 +230,4 @@ def parse_cookie_attr_same_site(cookie_entity, protos): except Exception: return same_site - return same_site + return same_site From 87cb14cd123ecf4a95ccb87b0abbd79a8767e026 Mon Sep 17 00:00:00 2001 From: Allen <57342162+Allen5288@users.noreply.github.com> Date: Sun, 22 Nov 2026 11:43:13 +1100 Subject: [PATCH 13/19] Fix empty cookie domain/path being sent as empty string --- runtimes/v2/azure_functions_runtime/bindings/datumdef.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtimes/v2/azure_functions_runtime/bindings/datumdef.py b/runtimes/v2/azure_functions_runtime/bindings/datumdef.py index 9ef518dd4..721dafea5 100644 --- a/runtimes/v2/azure_functions_runtime/bindings/datumdef.py +++ b/runtimes/v2/azure_functions_runtime/bindings/datumdef.py @@ -229,4 +229,4 @@ def parse_cookie_attr_same_site(cookie_entity, protos): except Exception: return same_site - return same_site + return same_site From 5779db49748e0388529644fb9f65df4836d7da34 Mon Sep 17 00:00:00 2001 From: Allen <57342162+Allen5288@users.noreply.github.com> Date: Sun, 22 Nov 2026 11:43:57 +1100 Subject: [PATCH 14/19] Fix empty cookie domain/path being sent as empty string --- workers/tests/unittests/test_datumref.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workers/tests/unittests/test_datumref.py b/workers/tests/unittests/test_datumref.py index 6f91fcc82..7dd310f95 100644 --- a/workers/tests/unittests/test_datumref.py +++ b/workers/tests/unittests/test_datumref.py @@ -186,4 +186,4 @@ def test_parse_to_rpc_http_cookie_list_no_cookie(self): ) self.assertIsNone( - parse_to_rpc_http_cookie_list(datum.value.get('cookies'))) + parse_to_rpc_http_cookie_list(datum.value.get('cookies'))) From f1bb6c7f2afd6ad2008607b1d43b9b3e38de4e1a Mon Sep 17 00:00:00 2001 From: Allen <57342162+Allen5288@users.noreply.github.com> Date: Sun, 22 Nov 2026 11:44:44 +1100 Subject: [PATCH 15/19] Fix empty cookie domain/path being sent as empty string --- runtimes/v1/tests/unittests/test_datumdef.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtimes/v1/tests/unittests/test_datumdef.py b/runtimes/v1/tests/unittests/test_datumdef.py index c4b9b9522..73b85a875 100644 --- a/runtimes/v1/tests/unittests/test_datumdef.py +++ b/runtimes/v1/tests/unittests/test_datumdef.py @@ -202,4 +202,4 @@ def test_parse_to_rpc_http_cookie_list_no_cookie(self): ) self.assertIsNone( - parse_to_rpc_http_cookie_list(datum.value.get('cookies'), protos)) + parse_to_rpc_http_cookie_list(datum.value.get('cookies'), protos)) From 338f8ef215e8c9c3fc82d0b653d7ff780f8353f3 Mon Sep 17 00:00:00 2001 From: Allen <57342162+Allen5288@users.noreply.github.com> Date: Sun, 22 Nov 2026 11:45:28 +1100 Subject: [PATCH 16/19] Fix empty cookie domain/path being sent as empty string --- runtimes/v2/tests/unittests/test_datumdef.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtimes/v2/tests/unittests/test_datumdef.py b/runtimes/v2/tests/unittests/test_datumdef.py index e2e7b0a02..52a2038ae 100644 --- a/runtimes/v2/tests/unittests/test_datumdef.py +++ b/runtimes/v2/tests/unittests/test_datumdef.py @@ -202,4 +202,4 @@ def test_parse_to_rpc_http_cookie_list_no_cookie(self): ) self.assertIsNone( - parse_to_rpc_http_cookie_list(datum.value.get('cookies'), protos)) + parse_to_rpc_http_cookie_list(datum.value.get('cookies'), protos)) From 3ef827f503e88a26b088f5665b49fb26205c7255 Mon Sep 17 00:00:00 2001 From: Allen <57342162+Allen5288@users.noreply.github.com> Date: Sun, 22 Nov 2026 11:46:20 +1100 Subject: [PATCH 17/19] Fix empty cookie domain/path being sent as empty string --- workers/r2p2/bridge/bridge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workers/r2p2/bridge/bridge.py b/workers/r2p2/bridge/bridge.py index e101523c9..e54152567 100644 --- a/workers/r2p2/bridge/bridge.py +++ b/workers/r2p2/bridge/bridge.py @@ -978,4 +978,4 @@ def shutdown(): except Exception: pass if _loop is not None: - _loop.call_soon_threadsafe(_loop.stop) + _loop.call_soon_threadsafe(_loop.stop) From f8698855e4bed9f54d881e8e1e1168e0f5ce16f9 Mon Sep 17 00:00:00 2001 From: Allen <57342162+Allen5288@users.noreply.github.com> Date: Sun, 22 Nov 2026 11:47:05 +1100 Subject: [PATCH 18/19] Fix empty cookie domain/path being sent as empty string --- workers/r2p2/src/convert.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workers/r2p2/src/convert.rs b/workers/r2p2/src/convert.rs index c222e52f2..a372e7bef 100644 --- a/workers/r2p2/src/convert.rs +++ b/workers/r2p2/src/convert.rs @@ -711,4 +711,4 @@ mod tests { assert!(tuple_to_typed_data(py, &tup).is_err()); }); } -} +} From 2d8240fa10562c94ffc115e4414d74a6ddd9448c Mon Sep 17 00:00:00 2001 From: Allen <57342162+Allen5288@users.noreply.github.com> Date: Sun, 22 Nov 2026 11:47:50 +1100 Subject: [PATCH 19/19] Fix empty cookie domain/path being sent as empty string --- workers/tests/unittest_r2p2/test_bridge_invocation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workers/tests/unittest_r2p2/test_bridge_invocation.py b/workers/tests/unittest_r2p2/test_bridge_invocation.py index 3157a511d..bf2aa95b6 100644 --- a/workers/tests/unittest_r2p2/test_bridge_invocation.py +++ b/workers/tests/unittest_r2p2/test_bridge_invocation.py @@ -513,4 +513,4 @@ def invocation_request_native(*args): assert result == (True, ("string", "async"), [], None, None) assert captured["async_args"][:6] == ( - "inv", "fid", [], {}, "trace-parent", "trace-state") + "inv", "fid", [], {}, "trace-parent", "trace-state")