mirror of
https://github.com/soimort/you-get.git
synced 2025-01-24 05:55:02 +03:00
[common] post_content: make log right
This commit is contained in:
parent
cc69f0945a
commit
5dfee49688
@ -450,8 +450,10 @@ def post_content(url, headers={}, post_data={}, decoded=True, **kwargs):
|
|||||||
Returns:
|
Returns:
|
||||||
The content as a string.
|
The content as a string.
|
||||||
"""
|
"""
|
||||||
|
if kwargs.get('post_data_raw'):
|
||||||
logging.debug('post_content: %s \n post_data: %s' % (url, post_data))
|
logging.debug('post_content: %s\npost_data_raw: %s' % (url, kwargs['post_data_raw']))
|
||||||
|
else:
|
||||||
|
logging.debug('post_content: %s\npost_data: %s' % (url, post_data))
|
||||||
|
|
||||||
req = request.Request(url, headers=headers)
|
req = request.Request(url, headers=headers)
|
||||||
if cookies:
|
if cookies:
|
||||||
|
Loading…
Reference in New Issue
Block a user