Skip to content

Commit 30f3423

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat: OpenAPI spec update via Stainless API (#91)
1 parent 9e133f3 commit 30f3423

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/cloudflare/_client.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,8 @@ def default_headers(self) -> dict[str, str | Omit]:
335335
return {
336336
**super().default_headers,
337337
"X-Stainless-Async": "false",
338-
"x-auth-email": self.api_email if self.api_email is not None else Omit(),
338+
"X-Auth-Key": self.api_key if self.api_key is not None else Omit(),
339+
"X-Auth-Email": self.api_email if self.api_email is not None else Omit(),
339340
**self._custom_headers,
340341
}
341342

@@ -745,7 +746,8 @@ def default_headers(self) -> dict[str, str | Omit]:
745746
return {
746747
**super().default_headers,
747748
"X-Stainless-Async": f"async:{get_async_library()}",
748-
"x-auth-email": self.api_email if self.api_email is not None else Omit(),
749+
"X-Auth-Key": self.api_key if self.api_key is not None else Omit(),
750+
"X-Auth-Email": self.api_email if self.api_email is not None else Omit(),
749751
**self._custom_headers,
750752
}
751753

0 commit comments

Comments
 (0)