{"action":"created","issue":{"url":"https://api.github.com/repos/syncthing/syncthing/issues/2745","labels_url":"https://api.github.com/repos/syncthing/syncthing/issues/2745/labels{/name}","comments_url":"https://api.github.com/repos/syncthing/syncthing/issues/2745/comments","events_url":"https://api.github.com/repos/syncthing/syncthing/issues/2745/events","html_url":"https://github.com/syncthing/syncthing/pull/2745","id":129722574,"number":2745,"title":"Return status code 307 instead of 302 when redirecting from HTTP to HTTPS","user":{"login":"calmh","id":125426,"avatar_url":"https://avatars.githubusercontent.com/u/125426?v=3","gravatar_id":"","url":"https://api.github.com/users/calmh","html_url":"https://github.com/calmh","followers_url":"https://api.github.com/users/calmh/followers","following_url":"https://api.github.com/users/calmh/following{/other_user}","gists_url":"https://api.github.com/users/calmh/gists{/gist_id}","starred_url":"https://api.github.com/users/calmh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calmh/subscriptions","organizations_url":"https://api.github.com/users/calmh/orgs","repos_url":"https://api.github.com/users/calmh/repos","events_url":"https://api.github.com/users/calmh/events{/privacy}","received_events_url":"https://api.github.com/users/calmh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"canton7","id":568104,"avatar_url":"https://avatars.githubusercontent.com/u/568104?v=3","gravatar_id":"","url":"https://api.github.com/users/canton7","html_url":"https://github.com/canton7","followers_url":"https://api.github.com/users/canton7/followers","following_url":"https://api.github.com/users/canton7/following{/other_user}","gists_url":"https://api.github.com/users/canton7/gists{/gist_id}","starred_url":"https://api.github.com/users/canton7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canton7/subscriptions","organizations_url":"https://api.github.com/users/canton7/orgs","repos_url":"https://api.github.com/users/canton7/repos","events_url":"https://api.github.com/users/canton7/events{/privacy}","received_events_url":"https://api.github.com/users/canton7/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2016-01-29T10:08:17Z","updated_at":"2016-01-29T11:07:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/syncthing/syncthing/pulls/2745","html_url":"https://github.com/syncthing/syncthing/pull/2745","diff_url":"https://github.com/syncthing/syncthing/pull/2745.diff","patch_url":"https://github.com/syncthing/syncthing/pull/2745.patch"},"body":"```\r\njb@syno:~/s/g/s/syncthing $ curl -X POST -i http://localhost:8385/rest/system/config\r\nHTTP/1.1 307 Temporary Redirect\r\nLocation: https://localhost:8385/rest/system/config\r\nDate: Fri, 29 Jan 2016 10:09:16 GMT\r\nContent-Length: 0\r\nContent-Type: text/plain; charset=utf-8\r\n```"},"comment":{"url":"https://api.github.com/repos/syncthing/syncthing/issues/comments/176695760","html_url":"https://github.com/syncthing/syncthing/pull/2745#issuecomment-176695760","issue_url":"https://api.github.com/repos/syncthing/syncthing/issues/2745","id":176695760,"user":{"login":"canton7","id":568104,"avatar_url":"https://avatars.githubusercontent.com/u/568104?v=3","gravatar_id":"","url":"https://api.github.com/users/canton7","html_url":"https://github.com/canton7","followers_url":"https://api.github.com/users/canton7/followers","following_url":"https://api.github.com/users/canton7/following{/other_user}","gists_url":"https://api.github.com/users/canton7/gists{/gist_id}","starred_url":"https://api.github.com/users/canton7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/canton7/subscriptions","organizations_url":"https://api.github.com/users/canton7/orgs","repos_url":"https://api.github.com/users/canton7/repos","events_url":"https://api.github.com/users/canton7/events{/privacy}","received_events_url":"https://api.github.com/users/canton7/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T11:07:38Z","updated_at":"2016-01-29T11:07:38Z","body":"It seems that thing which make HTTP requests (browsers, API libraries, etc) will switch from `POST` to `GET` if they see a `302`. This can happen if a client requests an API endpoint over HTTP when Syncthing is configured to only allow HTTPS."}}