fix: handle optional cookie field for mypy type check
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
f649c07e10
commit
0ee89136ff
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ def _apply_scholar_http_settings(payload: AdminScholarHttpSettingsUpdateRequest)
|
||||||
max_length=_MAX_ACCEPT_LANGUAGE_LENGTH,
|
max_length=_MAX_ACCEPT_LANGUAGE_LENGTH,
|
||||||
)
|
)
|
||||||
cookie = _normalize_header_value(
|
cookie = _normalize_header_value(
|
||||||
payload.cookie,
|
payload.cookie or "",
|
||||||
field_name="cookie",
|
field_name="cookie",
|
||||||
max_length=_MAX_COOKIE_LENGTH,
|
max_length=_MAX_COOKIE_LENGTH,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue