{"action":"closed","issue":{"url":"https://api.github.com/repos/mitmproxy/mitmproxy/issues/1555","repository_url":"https://api.github.com/repos/mitmproxy/mitmproxy","labels_url":"https://api.github.com/repos/mitmproxy/mitmproxy/issues/1555/labels{/name}","comments_url":"https://api.github.com/repos/mitmproxy/mitmproxy/issues/1555/comments","events_url":"https://api.github.com/repos/mitmproxy/mitmproxy/issues/1555/events","html_url":"https://github.com/mitmproxy/mitmproxy/issues/1555","id":177233504,"number":1555,"title":"sslstrip.py processes flow.request.content instead of flow.response.content","user":{"login":"phackt","id":19553457,"avatar_url":"https://avatars.githubusercontent.com/u/19553457?v=3","gravatar_id":"","url":"https://api.github.com/users/phackt","html_url":"https://github.com/phackt","followers_url":"https://api.github.com/users/phackt/followers","following_url":"https://api.github.com/users/phackt/following{/other_user}","gists_url":"https://api.github.com/users/phackt/gists{/gist_id}","starred_url":"https://api.github.com/users/phackt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phackt/subscriptions","organizations_url":"https://api.github.com/users/phackt/orgs","repos_url":"https://api.github.com/users/phackt/repos","events_url":"https://api.github.com/users/phackt/events{/privacy}","received_events_url":"https://api.github.com/users/phackt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-15T17:12:03Z","updated_at":"2016-09-15T19:25:19Z","closed_at":"2016-09-15T19:25:19Z","body":"##### Steps to reproduce the problem:\r\n\r\n1. https://github.com/mitmproxy/mitmproxy/blob/v0.17.1/examples/sslstrip.py\r\n2. https://github.com/mitmproxy/mitmproxy/blob/master/examples/sslstrip.py\r\n\r\n##### What is the expected behavior?\r\n\r\nShould pop headers from response (flow.response.headers) instead of request.\r\n\r\n##### What went wrong?\r\n\r\ndef response(flow):\r\n    flow.request.headers.pop('Strict-Transport-Security', None)\r\n    flow.request.headers.pop('Public-Key-Pins', None)\r\n\r\n\r\n##### Any other comments? What have you tried so far?\r\n\r\nIssue created in order to track discussion https://discourse.mitmproxy.org/t/inline-script-sslstrip-py-with-flow-request-headers-in-response-function/169\r\n---\r\n\r\nMitmproxy Version: 0.17.1\r\nOperating System: #1 SMP Debian 4.6.4-1kali1 x86_64 GNU/Linux\r\n\r\n\r\n\r\n<!-- Please use the mitmproxy forums (https://discourse.mitmproxy.org/) for support/how-to questions. Thanks! :) -->\r\n"}}
{"actor":{"display_login":"phackt"}}