{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/7424","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/7424/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/7424/comments","events_url":"https://api.github.com/repos/angular/angular/issues/7424/events","html_url":"https://github.com/angular/angular/issues/7424","id":138420063,"number":7424,"title":"http.put() sends HTTP OPTIONS","user":{"login":"andrashatvani","id":695746,"avatar_url":"https://avatars.githubusercontent.com/u/695746?v=3","gravatar_id":"","url":"https://api.github.com/users/andrashatvani","html_url":"https://github.com/andrashatvani","followers_url":"https://api.github.com/users/andrashatvani/followers","following_url":"https://api.github.com/users/andrashatvani/following{/other_user}","gists_url":"https://api.github.com/users/andrashatvani/gists{/gist_id}","starred_url":"https://api.github.com/users/andrashatvani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrashatvani/subscriptions","organizations_url":"https://api.github.com/users/andrashatvani/orgs","repos_url":"https://api.github.com/users/andrashatvani/repos","events_url":"https://api.github.com/users/andrashatvani/events{/privacy}","received_events_url":"https://api.github.com/users/andrashatvani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-04T08:59:37Z","updated_at":"2016-03-04T09:44:15Z","closed_at":null,"body":"* **I'm submitting a ... **\r\n[ x] bug report\r\n[ ] feature request\r\n[ ] support request => Please do not submit support request here, see note at the top of this template.\r\n\r\n\r\n* **Do you want to request a *feature* or report a *bug*?**\r\nI'm reporting a bug.\r\n\r\n\r\n* **What is the current behavior?**\r\nWhen calling http.put('http://localhost/endpoint', '', {search: searchParams}), then an HTTP OPTIONS will be sent instead of an HTTP PUT.\r\n\r\n\r\n* **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem** via\r\nhttps://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).\r\n\r\n\r\n\r\n* **What is the expected behavior?**\r\nHTTP PUT will be sent.\r\n\r\n\r\n* **What is the motivation / use case for changing the behavior?**\r\nSending HTTP PUT when calling http.put() should be the standard behavior.\r\n\r\n\r\n* **Please tell us about your environment:**\r\n\r\n- Angular version: 2.0.0-beta.8\r\n- Browser: [48.0.2564.116 m (64-bit) ]\r\n- Language: [TypeScript 1.8 | ES5]\r\n\r\n\r\n\r\n* **Other information** (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/192209692","html_url":"https://github.com/angular/angular/issues/7424#issuecomment-192209692","issue_url":"https://api.github.com/repos/angular/angular/issues/7424","id":192209692,"user":{"login":"zoechi","id":405837,"avatar_url":"https://avatars.githubusercontent.com/u/405837?v=3","gravatar_id":"","url":"https://api.github.com/users/zoechi","html_url":"https://github.com/zoechi","followers_url":"https://api.github.com/users/zoechi/followers","following_url":"https://api.github.com/users/zoechi/following{/other_user}","gists_url":"https://api.github.com/users/zoechi/gists{/gist_id}","starred_url":"https://api.github.com/users/zoechi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoechi/subscriptions","organizations_url":"https://api.github.com/users/zoechi/orgs","repos_url":"https://api.github.com/users/zoechi/repos","events_url":"https://api.github.com/users/zoechi/events{/privacy}","received_events_url":"https://api.github.com/users/zoechi/received_events","type":"User","site_admin":false},"created_at":"2016-03-04T09:44:15Z","updated_at":"2016-03-04T09:44:15Z","body":"Are you sure this is not the browser that is doing that? http://stackoverflow.com/questions/1256593/why-am-i-getting-an-options-request-instead-of-a-get-request"}}