{"action":"created","issue":{"url":"https://api.github.com/repos/drewzboto/grunt-connect-proxy/issues/79","labels_url":"https://api.github.com/repos/drewzboto/grunt-connect-proxy/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/drewzboto/grunt-connect-proxy/issues/79/comments","events_url":"https://api.github.com/repos/drewzboto/grunt-connect-proxy/issues/79/events","html_url":"https://github.com/drewzboto/grunt-connect-proxy/issues/79","id":45735793,"number":79,"title":"Getting 400 Bad request: \"You're speaking plain HTTP to an SSL-enabled server port.\" error.","user":{"login":"Siim","id":44247,"avatar_url":"https://avatars.githubusercontent.com/u/44247?v=3","gravatar_id":"","url":"https://api.github.com/users/Siim","html_url":"https://github.com/Siim","followers_url":"https://api.github.com/users/Siim/followers","following_url":"https://api.github.com/users/Siim/following{/other_user}","gists_url":"https://api.github.com/users/Siim/gists{/gist_id}","starred_url":"https://api.github.com/users/Siim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Siim/subscriptions","organizations_url":"https://api.github.com/users/Siim/orgs","repos_url":"https://api.github.com/users/Siim/repos","events_url":"https://api.github.com/users/Siim/events{/privacy}","received_events_url":"https://api.github.com/users/Siim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-10-14T10:43:03Z","updated_at":"2015-03-09T16:54:44Z","closed_at":null,"body":"Hi!\r\n\r\nI have some configuration issues on OSX Mavericks: if I try to proxy some requests to https server then I get 400 Bad request. Here is the full message:\r\n\r\n    Bad Request\r\n    \r\n    Your browser sent a request that this server could not understand.\r\n    Reason: You're speaking plain HTTP to an SSL-enabled server port.\r\n    Instead use the HTTPS scheme to access this URL, please.\r\n    \r\nI thought that if I set https option to **true** then the proxy will handle it. I also configured the client app server to use SSL connection and even this will result the same error:\r\n\r\nHere is my configuration:\r\n\r\n    module.exports = {\r\n        nodePort: 3000,\r\n        dataSource: 'proxy', \r\n        proxy: {\r\n            proxies: [\r\n                {\r\n                    context: '/test',\r\n                    host: 'localserver.lan',\r\n                    port: 443,\r\n                    https: true,\r\n                    changeOrigin: false\r\n                }\r\n            ]\r\n        }\r\n    };\r\n"},"comment":{"url":"https://api.github.com/repos/drewzboto/grunt-connect-proxy/issues/comments/77894237","html_url":"https://github.com/drewzboto/grunt-connect-proxy/issues/79#issuecomment-77894237","issue_url":"https://api.github.com/repos/drewzboto/grunt-connect-proxy/issues/79","id":77894237,"user":{"login":"iamchairs","id":4390732,"avatar_url":"https://avatars.githubusercontent.com/u/4390732?v=3","gravatar_id":"","url":"https://api.github.com/users/iamchairs","html_url":"https://github.com/iamchairs","followers_url":"https://api.github.com/users/iamchairs/followers","following_url":"https://api.github.com/users/iamchairs/following{/other_user}","gists_url":"https://api.github.com/users/iamchairs/gists{/gist_id}","starred_url":"https://api.github.com/users/iamchairs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamchairs/subscriptions","organizations_url":"https://api.github.com/users/iamchairs/orgs","repos_url":"https://api.github.com/users/iamchairs/repos","events_url":"https://api.github.com/users/iamchairs/events{/privacy}","received_events_url":"https://api.github.com/users/iamchairs/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T16:54:44Z","updated_at":"2015-03-09T16:54:44Z","body":"Has anyone forked and fixed this issue?"}}