Skip to content

Commit

Permalink
Merge pull request #104 from christofferqa/fix_key_error
Browse files Browse the repository at this point in the history
Avoid KeyError from proxy.py
  • Loading branch information
ksen007 authored Sep 14, 2016
2 parents e467819 + f0c4ed6 commit 4af5a6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def response(context, flow):

# Do not invoke jalangi if the requested URL contains the query parameter noInstr
# (e.g. https://cdn.com/jalangi/jalangi.min.js?noInstr=true)
if flow.request.query and flow.request.query['noInstr']:
if flow.request.query and flow.request.query.get('noInstr', None):
return

try:
Expand Down

0 comments on commit 4af5a6e

Please sign in to comment.