{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla-services/kinto/issues/126","labels_url":"https://api.github.com/repos/mozilla-services/kinto/issues/126/labels{/name}","comments_url":"https://api.github.com/repos/mozilla-services/kinto/issues/126/comments","events_url":"https://api.github.com/repos/mozilla-services/kinto/issues/126/events","html_url":"https://github.com/mozilla-services/kinto/pull/126","id":93753304,"number":126,"title":"Getting a 401 on OPTIONS seems wrong","user":{"login":"n1k0","id":41547,"avatar_url":"https://avatars.githubusercontent.com/u/41547?v=3","gravatar_id":"","url":"https://api.github.com/users/n1k0","html_url":"https://github.com/n1k0","followers_url":"https://api.github.com/users/n1k0/followers","following_url":"https://api.github.com/users/n1k0/following{/other_user}","gists_url":"https://api.github.com/users/n1k0/gists{/gist_id}","starred_url":"https://api.github.com/users/n1k0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/n1k0/subscriptions","organizations_url":"https://api.github.com/users/n1k0/orgs","repos_url":"https://api.github.com/users/n1k0/repos","events_url":"https://api.github.com/users/n1k0/events{/privacy}","received_events_url":"https://api.github.com/users/n1k0/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mozilla-services/kinto/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/mozilla-services/kinto/milestones/7","html_url":"https://github.com/mozilla-services/kinto/milestones/1.2.2","labels_url":"https://api.github.com/repos/mozilla-services/kinto/milestones/7/labels","id":1198490,"number":7,"title":"1.2.2","description":"","creator":{"login":"Natim","id":229453,"avatar_url":"https://avatars.githubusercontent.com/u/229453?v=3","gravatar_id":"","url":"https://api.github.com/users/Natim","html_url":"https://github.com/Natim","followers_url":"https://api.github.com/users/Natim/followers","following_url":"https://api.github.com/users/Natim/following{/other_user}","gists_url":"https://api.github.com/users/Natim/gists{/gist_id}","starred_url":"https://api.github.com/users/Natim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Natim/subscriptions","organizations_url":"https://api.github.com/users/Natim/orgs","repos_url":"https://api.github.com/users/Natim/repos","events_url":"https://api.github.com/users/Natim/events{/privacy}","received_events_url":"https://api.github.com/users/Natim/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2015-07-08T10:14:06Z","updated_at":"2015-07-08T14:42:47Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-07-08T10:08:09Z","updated_at":"2015-07-08T15:32:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mozilla-services/kinto/pulls/126","html_url":"https://github.com/mozilla-services/kinto/pull/126","diff_url":"https://github.com/mozilla-services/kinto/pull/126.diff","patch_url":"https://github.com/mozilla-services/kinto/pull/126.patch"},"body":"![screen shot 2015-07-08 at 12 04 30](https://cloud.githubusercontent.com/assets/41547/8567960/f09c972e-2569-11e5-8e5e-2536745597f3.png)\r\n\r\n@Natim says the patch should be:\r\n\r\n```diff\r\n def default_bucket(request):\r\n-    if getattr(request, 'prefixed_userid', None) is None:\r\n+    if getattr(request, 'prefixed_userid', None) is None \\\r\n+       and request.method != 'OPTION':\r\n```"},"comment":{"url":"https://api.github.com/repos/mozilla-services/kinto/issues/comments/119626910","html_url":"https://github.com/mozilla-services/kinto/pull/126#issuecomment-119626910","issue_url":"https://api.github.com/repos/mozilla-services/kinto/issues/126","id":119626910,"user":{"login":"Natim","id":229453,"avatar_url":"https://avatars.githubusercontent.com/u/229453?v=3","gravatar_id":"","url":"https://api.github.com/users/Natim","html_url":"https://github.com/Natim","followers_url":"https://api.github.com/users/Natim/followers","following_url":"https://api.github.com/users/Natim/following{/other_user}","gists_url":"https://api.github.com/users/Natim/gists{/gist_id}","starred_url":"https://api.github.com/users/Natim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Natim/subscriptions","organizations_url":"https://api.github.com/users/Natim/orgs","repos_url":"https://api.github.com/users/Natim/repos","events_url":"https://api.github.com/users/Natim/events{/privacy}","received_events_url":"https://api.github.com/users/Natim/received_events","type":"User","site_admin":false},"created_at":"2015-07-08T15:32:01Z","updated_at":"2015-07-08T15:32:01Z","body":"```\r\n$ http OPTIONS http://localhost:8888/v1/buckets/default/collections/tasks/records Origin:http://0.0.0.0:8080 Access-Control-Request-Method:GET Access-Control-Request-Headers:authorization,content-type\r\nHTTP/1.1 200 OK\r\nAccess-Control-Allow-Headers: Retry-After,Last-Modified,Total-Records,ETag,authorization,content-type,Backoff,Next-Page,Alert\r\nAccess-Control-Allow-Methods: GET,HEAD,POST,DELETE,OPTIONS\r\nAccess-Control-Allow-Origin: *\r\nAccess-Control-Max-Age: False\r\nContent-Length: 4\r\nContent-Type: application/json; charset=UTF-8\r\nDate: Wed, 08 Jul 2015 15:31:46 GMT\r\nServer: waitress\r\n\r\n```"}}