Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit79aecb6

Browse files
authored
Update api.py
1 parent49a5e0f commit79aecb6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎woocommerce/api.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ def __request(self, method, endpoint, data, params=None, **kwargs):
7070
params= {}
7171
url=self.__get_url(endpoint)
7272
auth=None
73-
headers=kwargs.get('custom_headers', {})
73+
headers=kwargs.get('headers', {})
74+
kwargs.pop('headers',None)
7475
headers['user-agent']="WooCommerce API Client-Python/%s"%__version__
7576
headers['accept']="application/json"
7677

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp