코드가 하는 일을 읽고, 가려진 빈칸에 직접 이름을 지어 넣으세요. 빈칸 폭이 원본 이름의 글자 수입니다.
1def (headers: CaseInsensitiveDict[str]) -> str | None: 2 3 content_type = headers.get("content-type") 4 5 if not content_type: 6 return None 7 8 content_type, params = _parse_content_type_header(content_type) 9 10 if "charset" in params: 11 return params["charset"].strip("'\"") 12 13 if "text" in content_type: 14 return "ISO-8859-1" 15 16 if "application/json" in content_type: 17 18 return "utf-8"