MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / _normalize_same_site

Function _normalize_same_site

src/services/browser_cookie_utils.py:65–73  ·  view source on GitHub ↗
(value: Any)

Source from the content-addressed store, hash-verified

63
64
65def _normalize_same_site(value: Any) -> Optional[str]:
66 raw = str(value or "").strip().lower()
67 if raw == "strict":
68 return "Strict"
69 if raw == "none":
70 return "None"
71 if raw == "lax":
72 return "Lax"
73 return None
74
75
76def _build_cookie_from_mapping(raw_cookie: Dict[str, Any], default_url: str) -> Optional[Dict[str, Any]]:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected