Skip to content

Commit 806f5aa

Browse files
author
Roberto De Ioris
authored
Update Http_API.md
1 parent 5ee2d33 commit 806f5aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Http_API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ request = IHttpRequest('Get', 'http://httpbin.org/user-agent')
1313

1414
def response_received(request, response, success):
1515
data = json.loads(response.get_content_as_string())
16-
ue.log(data)
16+
ue.log(data['user-agent'])
1717

1818
# bind OnProcessRequestComplete event to the response_received callable
1919
request.bind_on_process_request_complete(response_received)

0 commit comments

Comments
 (0)