{"action":"closed","issue":{"url":"https://api.github.com/repos/mitmproxy/mitmproxy/issues/483","labels_url":"https://api.github.com/repos/mitmproxy/mitmproxy/issues/483/labels{/name}","comments_url":"https://api.github.com/repos/mitmproxy/mitmproxy/issues/483/comments","events_url":"https://api.github.com/repos/mitmproxy/mitmproxy/issues/483/events","html_url":"https://github.com/mitmproxy/mitmproxy/issues/483","id":58345897,"number":483,"title":"Fallback to TCP Proxying on non-standard HTTP traffic","user":{"login":"yoavfrancis","id":328378,"avatar_url":"https://avatars.githubusercontent.com/u/328378?v=3","gravatar_id":"","url":"https://api.github.com/users/yoavfrancis","html_url":"https://github.com/yoavfrancis","followers_url":"https://api.github.com/users/yoavfrancis/followers","following_url":"https://api.github.com/users/yoavfrancis/following{/other_user}","gists_url":"https://api.github.com/users/yoavfrancis/gists{/gist_id}","starred_url":"https://api.github.com/users/yoavfrancis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yoavfrancis/subscriptions","organizations_url":"https://api.github.com/users/yoavfrancis/orgs","repos_url":"https://api.github.com/users/yoavfrancis/repos","events_url":"https://api.github.com/users/yoavfrancis/events{/privacy}","received_events_url":"https://api.github.com/users/yoavfrancis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mitmproxy/mitmproxy/labels/feature%20request","name":"feature request","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-02-20T12:27:49Z","updated_at":"2015-09-17T11:20:30Z","closed_at":"2015-09-17T11:20:30Z","body":"Hi,\r\n\r\nPerhaps this is more of a feature enhancement - but say that I have mitmproxy running on port 80/443 in transparent mode (HTTP proxy mode), and suddenly I get a non-HTTP connection over that port (This can happen with various applications that use proprietary TCP-based protocol over 443/80)\r\n\r\nIt'd be absolutely neat if it'd be possible to fallback to TCP-proxying on a specific problematic connection - this way the client won't feel any problems whatsoever.\r\n\r\nI don't mind giving it a look myself - do you have a recommendation of how to elegantly achieve this behavior in the code?\r\n\r\nThanks a bunch,\r\nYoav"}}