{"action":"created","issue":{"url":"https://api.github.com/repos/ballerinalang/ballerina/issues/2472","repository_url":"https://api.github.com/repos/ballerinalang/ballerina","labels_url":"https://api.github.com/repos/ballerinalang/ballerina/issues/2472/labels{/name}","comments_url":"https://api.github.com/repos/ballerinalang/ballerina/issues/2472/comments","events_url":"https://api.github.com/repos/ballerinalang/ballerina/issues/2472/events","html_url":"https://github.com/ballerinalang/ballerina/issues/2472","id":233544276,"number":2472,"title":"Different behavior for 3xx redirection when location header is present","user":{"login":"erandidesilva","id":15624590,"avatar_url":"https://avatars1.githubusercontent.com/u/15624590?v=4","gravatar_id":"","url":"https://api.github.com/users/erandidesilva","html_url":"https://github.com/erandidesilva","followers_url":"https://api.github.com/users/erandidesilva/followers","following_url":"https://api.github.com/users/erandidesilva/following{/other_user}","gists_url":"https://api.github.com/users/erandidesilva/gists{/gist_id}","starred_url":"https://api.github.com/users/erandidesilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erandidesilva/subscriptions","organizations_url":"https://api.github.com/users/erandidesilva/orgs","repos_url":"https://api.github.com/users/erandidesilva/repos","events_url":"https://api.github.com/users/erandidesilva/events{/privacy}","received_events_url":"https://api.github.com/users/erandidesilva/received_events","type":"User","site_admin":false},"labels":[{"id":684576167,"url":"https://api.github.com/repos/ballerinalang/ballerina/labels/Type/Bug","name":"Type/Bug","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":{"login":"shafreenAnfar","id":6178058,"avatar_url":"https://avatars0.githubusercontent.com/u/6178058?v=4","gravatar_id":"","url":"https://api.github.com/users/shafreenAnfar","html_url":"https://github.com/shafreenAnfar","followers_url":"https://api.github.com/users/shafreenAnfar/followers","following_url":"https://api.github.com/users/shafreenAnfar/following{/other_user}","gists_url":"https://api.github.com/users/shafreenAnfar/gists{/gist_id}","starred_url":"https://api.github.com/users/shafreenAnfar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shafreenAnfar/subscriptions","organizations_url":"https://api.github.com/users/shafreenAnfar/orgs","repos_url":"https://api.github.com/users/shafreenAnfar/repos","events_url":"https://api.github.com/users/shafreenAnfar/events{/privacy}","received_events_url":"https://api.github.com/users/shafreenAnfar/received_events","type":"User","site_admin":false},"assignees":[{"login":"shafreenAnfar","id":6178058,"avatar_url":"https://avatars0.githubusercontent.com/u/6178058?v=4","gravatar_id":"","url":"https://api.github.com/users/shafreenAnfar","html_url":"https://github.com/shafreenAnfar","followers_url":"https://api.github.com/users/shafreenAnfar/followers","following_url":"https://api.github.com/users/shafreenAnfar/following{/other_user}","gists_url":"https://api.github.com/users/shafreenAnfar/gists{/gist_id}","starred_url":"https://api.github.com/users/shafreenAnfar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shafreenAnfar/subscriptions","organizations_url":"https://api.github.com/users/shafreenAnfar/orgs","repos_url":"https://api.github.com/users/shafreenAnfar/repos","events_url":"https://api.github.com/users/shafreenAnfar/events{/privacy}","received_events_url":"https://api.github.com/users/shafreenAnfar/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2017-06-05T10:01:12Z","updated_at":"2017-11-22T08:14:14Z","closed_at":null,"author_association":"NONE","body":"**Steps**\r\n1. Call a back end that sends http 301 with a location header -> Currently ballerina redirects to the specified location header.\r\n\r\n2. Call a back end that sends http 305 with a location header -> no redirection happens\r\n\r\nSame behaviour as in above 1, for 307 and 308\r\n\r\nThis is two different behaviours when the location header is present. Ideally there should only be one behaviour that is unified to all http 3xx status codes with location header present.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ballerinalang/ballerina/issues/comments/346274661","html_url":"https://github.com/ballerinalang/ballerina/issues/2472#issuecomment-346274661","issue_url":"https://api.github.com/repos/ballerinalang/ballerina/issues/2472","id":346274661,"user":{"login":"shafreenAnfar","id":6178058,"avatar_url":"https://avatars0.githubusercontent.com/u/6178058?v=4","gravatar_id":"","url":"https://api.github.com/users/shafreenAnfar","html_url":"https://github.com/shafreenAnfar","followers_url":"https://api.github.com/users/shafreenAnfar/followers","following_url":"https://api.github.com/users/shafreenAnfar/following{/other_user}","gists_url":"https://api.github.com/users/shafreenAnfar/gists{/gist_id}","starred_url":"https://api.github.com/users/shafreenAnfar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shafreenAnfar/subscriptions","organizations_url":"https://api.github.com/users/shafreenAnfar/orgs","repos_url":"https://api.github.com/users/shafreenAnfar/repos","events_url":"https://api.github.com/users/shafreenAnfar/events{/privacy}","received_events_url":"https://api.github.com/users/shafreenAnfar/received_events","type":"User","site_admin":false},"created_at":"2017-11-22T08:14:14Z","updated_at":"2017-11-22T08:14:14Z","author_association":"CONTRIBUTOR","body":"Hi Erandi,\r\n\r\nRedirection was not there at the time this issue was created. Hence, must have been the client tool's behaviour. This feature is now implemented and with test-cases in the transport repo to validate each redirection scenario. \r\n\r\nThanks,\r\nShafreen"}}
{"actor":{"display_login":"shafreenAnfar"}}