{"action":"created","issue":{"url":"https://api.github.com/repos/tornadoweb/tornado/issues/1472","labels_url":"https://api.github.com/repos/tornadoweb/tornado/issues/1472/labels{/name}","comments_url":"https://api.github.com/repos/tornadoweb/tornado/issues/1472/comments","events_url":"https://api.github.com/repos/tornadoweb/tornado/issues/1472/events","html_url":"https://github.com/tornadoweb/tornado/issues/1472","id":97500147,"number":1472,"title":"DELETE requests never end.","user":{"login":"mendrugory","id":4078950,"avatar_url":"https://avatars.githubusercontent.com/u/4078950?v=3","gravatar_id":"","url":"https://api.github.com/users/mendrugory","html_url":"https://github.com/mendrugory","followers_url":"https://api.github.com/users/mendrugory/followers","following_url":"https://api.github.com/users/mendrugory/following{/other_user}","gists_url":"https://api.github.com/users/mendrugory/gists{/gist_id}","starred_url":"https://api.github.com/users/mendrugory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mendrugory/subscriptions","organizations_url":"https://api.github.com/users/mendrugory/orgs","repos_url":"https://api.github.com/users/mendrugory/repos","events_url":"https://api.github.com/users/mendrugory/events{/privacy}","received_events_url":"https://api.github.com/users/mendrugory/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-27T16:15:54Z","updated_at":"2015-07-31T16:31:15Z","closed_at":null,"body":"I am building my rest api using Tornado 4.2.1 with Python 3.4. \r\n\r\nIf I try to send a delete request (the same with put) the request arrives to the server and it performs its duty, but the rest client (I am using the Firefox rest client) never receives the response.\r\n\r\nI have tried the following codes:\r\n\r\n```python\r\n    def delete(self, company_id):\r\n        company_model = CompanyModel()\r\n        company_model.delete(company_id)\r\n        self.set_status(NO_CONTENT)\r\n```\r\n\r\n```python\r\n    def delete(self, company_id):\r\n        company_model = CompanyModel()\r\n        company_model.delete(company_id)\r\n        self.set_status(NO_CONTENT)\r\n        return\r\n```\r\n\r\n\r\n```python\r\n    def delete(self, company_id):\r\n        company_model = CompanyModel()\r\n        company_model.delete(company_id)\r\n        self.set_status(NO_CONTENT)\r\n        self.finish()\r\n```\r\n\r\n\r\nIn order to make it works I have implemented the following:\r\n\r\n```python\r\n    def delete(self, company_id):\r\n        company_model = CompanyModel()\r\n        company_model.delete(company_id)\r\n        self.set_status(ACCEPTED)\r\n        self.write(json.dumps(dict()))\r\n```"},"comment":{"url":"https://api.github.com/repos/tornadoweb/tornado/issues/comments/126745629","html_url":"https://github.com/tornadoweb/tornado/issues/1472#issuecomment-126745629","issue_url":"https://api.github.com/repos/tornadoweb/tornado/issues/1472","id":126745629,"user":{"login":"mendrugory","id":4078950,"avatar_url":"https://avatars.githubusercontent.com/u/4078950?v=3","gravatar_id":"","url":"https://api.github.com/users/mendrugory","html_url":"https://github.com/mendrugory","followers_url":"https://api.github.com/users/mendrugory/followers","following_url":"https://api.github.com/users/mendrugory/following{/other_user}","gists_url":"https://api.github.com/users/mendrugory/gists{/gist_id}","starred_url":"https://api.github.com/users/mendrugory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mendrugory/subscriptions","organizations_url":"https://api.github.com/users/mendrugory/orgs","repos_url":"https://api.github.com/users/mendrugory/repos","events_url":"https://api.github.com/users/mendrugory/events{/privacy}","received_events_url":"https://api.github.com/users/mendrugory/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T16:31:15Z","updated_at":"2015-07-31T16:31:15Z","body":"Thanks for your time. It works fine. The failure is in the rest client ( I have always trusted in Firefox's RESTClient ) after testing with chrome's rest client I could see that it works.\r\n\r\nThanks."}}