Fixed code in 'Event Hooks' section

This commit is contained in:
Lucian Ursu
2012-01-10 12:17:57 +02:00
parent 89c90add2c
commit de17f4e5a4
+1 -1
View File
@@ -194,7 +194,7 @@ Let's print some request method arguments at runtime::
Let's hijack some arguments this time with a new callback::
def hack_headers(args):
if not args[headers]:
if args.get('headers') is None:
args['headers'] = dict()
args['headers'].update({'X-Testing': 'True'})