bugfix: packet.text not self.text

This commit is contained in:
pi-rho 2013-02-16 15:50:03 -06:00
parent 4c6a76755c
commit 8073bceeb8
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ class StinkyPinkySession(ip.HtmlSession):
self.log(packet.firstframe, packet.html, False) self.log(packet.firstframe, packet.html, False)
if hasattr(packet, "text") and packet.text is not None: if hasattr(packet, "text") and packet.text is not None:
if self.debug: if self.debug:
sys.stdout.write(self.text) sys.stdout.write(packet.text)
self.log(packet.firstframe, packet.text, True) self.log(packet.firstframe, packet.text, True)