Skip to content

Commit 8ca280c

Browse files
feat: Use format-neutral profile download Accept header
1 parent e2f403c commit 8ca280c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 127
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-5163e8941e42f7fb84e10f572f538202b31722c84bb980db74ccd44a960eb87f.yml
3-
openapi_spec_hash: 8aa974cf7843681d6ae3e6dcf099596d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel/kernel-477bd1ff6f7053f2bd4687d7c5fc9a6a1d56a584be42f927abc6fc858ff35718.yml
3+
openapi_spec_hash: 3bf4cc824f6497c4ad109abd3187eede
44
config_hash: 77ee715aa17061166f9a02b264a21b8d

src/kernel/resources/profiles.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def download(
295295
"""
296296
if not id_or_name:
297297
raise ValueError(f"Expected a non-empty value for `id_or_name` but received {id_or_name!r}")
298-
extra_headers = {"Accept": "application/zstd", **(extra_headers or {})}
298+
extra_headers = {"Accept": "application/octet-stream", **(extra_headers or {})}
299299
return self._get(
300300
path_template("/profiles/{id_or_name}/download", id_or_name=id_or_name),
301301
options=make_request_options(
@@ -572,7 +572,7 @@ async def download(
572572
"""
573573
if not id_or_name:
574574
raise ValueError(f"Expected a non-empty value for `id_or_name` but received {id_or_name!r}")
575-
extra_headers = {"Accept": "application/zstd", **(extra_headers or {})}
575+
extra_headers = {"Accept": "application/octet-stream", **(extra_headers or {})}
576576
return await self._get(
577577
path_template("/profiles/{id_or_name}/download", id_or_name=id_or_name),
578578
options=make_request_options(

0 commit comments

Comments
 (0)