From 2cd5392657d29179e9ddae9f43a849276df030f9 Mon Sep 17 00:00:00 2001 From: Shadab Zafar Date: Mon, 7 Mar 2016 10:10:29 +0530 Subject: Add test for iframe_injector example --- examples/iframe_injector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/iframe_injector.py') diff --git a/examples/iframe_injector.py b/examples/iframe_injector.py index fc38b136..ad844f19 100644 --- a/examples/iframe_injector.py +++ b/examples/iframe_injector.py @@ -14,7 +14,7 @@ def response(context, flow): if flow.request.host in context.iframe_url: return with decoded(flow.response): # Remove content encoding (gzip, ...) - html = BeautifulSoup(flow.response.content) + html = BeautifulSoup(flow.response.content, "lxml") if html.body: iframe = html.new_tag( "iframe", -- cgit v1.2.3