now stripping hsts requests from headers

This commit is contained in:
byt3bl33d3r 2014-07-18 13:21:48 +02:00
parent 8c4d55b01b
commit 87971d9586
2 changed files with 2 additions and 3 deletions

View file

@ -1,6 +1,3 @@
#
# Work in progress
#
from plugins.plugin import Plugin
from plugins.BrowserProfiler import BrowserProfiler
from time import sleep

View file

@ -55,9 +55,11 @@ class ClientRequest(Request):
if 'accept-encoding' in headers:
headers['accept-encoding'] == 'identity'
logging.debug("zapped encoding")
if 'Strict-Transport-Security' in headers: #kill new hsts requests
del headers['Strict-Transport-Security']
logging.debug("zapped a HSTS request")
if 'if-modified-since' in headers:
del headers['if-modified-since']