Skip to content

Commit 21b6016

Browse files
committed
urlrequest: fix documentation on body/headers
1 parent 45b5b8e commit 21b6016

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kivy/network/urlrequest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ def bug_posted(req, result):
4848
'@action': 'show'})
4949
headers = {'Content-type': 'application/x-www-form-urlencoded',
5050
'Accept': 'text/plain'}
51-
req = UrlRequest('bugs.python.org', on_success=bug_posted, body=params,
52-
headers=headers)
51+
req = UrlRequest('bugs.python.org', on_success=bug_posted, req_body=params,
52+
req_headers=headers)
5353
5454
5555
'''

0 commit comments

Comments
 (0)