{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/10363","repository_url":"https://api.github.com/repos/odoo/odoo","labels_url":"https://api.github.com/repos/odoo/odoo/issues/10363/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/10363/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/10363/events","html_url":"https://github.com/odoo/odoo/pull/10363","id":125598910,"number":10363,"title":"[FIX] Make redirections work behind a proxy.","user":{"login":"Yajo","id":973709,"avatar_url":"https://avatars.githubusercontent.com/u/973709?v=3","gravatar_id":"","url":"https://api.github.com/users/Yajo","html_url":"https://github.com/Yajo","followers_url":"https://api.github.com/users/Yajo/followers","following_url":"https://api.github.com/users/Yajo/following{/other_user}","gists_url":"https://api.github.com/users/Yajo/gists{/gist_id}","starred_url":"https://api.github.com/users/Yajo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yajo/subscriptions","organizations_url":"https://api.github.com/users/Yajo/orgs","repos_url":"https://api.github.com/users/Yajo/repos","events_url":"https://api.github.com/users/Yajo/events{/privacy}","received_events_url":"https://api.github.com/users/Yajo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-01-08T12:01:49Z","updated_at":"2016-09-21T07:22:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/odoo/odoo/pulls/10363","html_url":"https://github.com/odoo/odoo/pull/10363","diff_url":"https://github.com/odoo/odoo/pull/10363.diff","patch_url":"https://github.com/odoo/odoo/pull/10363.patch"},"body":"Imagine Odoo in this scenario:\r\n\r\n    Public HTTPS server, port 443 -> Private Odoo HTTP server, port 8069.\r\n\r\nWithout this patch, any redirections use absolute paths, including the `http://` part, no matter what you have configured under system parameter `web.base.url`.\r\n\r\nWith this patch, redirections are relative to the host, starting with `/`. It will make them work under any scenario with less configuration in proxies.\r\n\r\nAccording to Werkzeug's docs, [this parameter is true by default to conform with an RFC](http://werkzeug.pocoo.org/docs/0.11/wrappers/#werkzeug.wrappers.BaseResponse.autocorrect_location_header). That one has been obsoleted by [RFC 7231](http://tools.ietf.org/html/rfc7231#section-7.1.2) which allows these kinds of redirections, so this patch is harmless for current browsers.\r\n\r\n@Tecnativa"},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/248531757","html_url":"https://github.com/odoo/odoo/pull/10363#issuecomment-248531757","issue_url":"https://api.github.com/repos/odoo/odoo/issues/10363","id":248531757,"user":{"login":"rafaelbn","id":8736623,"avatar_url":"https://avatars.githubusercontent.com/u/8736623?v=3","gravatar_id":"","url":"https://api.github.com/users/rafaelbn","html_url":"https://github.com/rafaelbn","followers_url":"https://api.github.com/users/rafaelbn/followers","following_url":"https://api.github.com/users/rafaelbn/following{/other_user}","gists_url":"https://api.github.com/users/rafaelbn/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelbn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelbn/subscriptions","organizations_url":"https://api.github.com/users/rafaelbn/orgs","repos_url":"https://api.github.com/users/rafaelbn/repos","events_url":"https://api.github.com/users/rafaelbn/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelbn/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T07:22:15Z","updated_at":"2016-09-21T07:22:15Z","body":"@Tecnativa\r\n\r\n:+1\r\n"}}
{"actor":{"display_login":"rafaelbn"}}