{"action":"created","issue":{"url":"https://api.github.com/repos/leafo/lapis/issues/318","labels_url":"https://api.github.com/repos/leafo/lapis/issues/318/labels{/name}","comments_url":"https://api.github.com/repos/leafo/lapis/issues/318/comments","events_url":"https://api.github.com/repos/leafo/lapis/issues/318/events","html_url":"https://github.com/leafo/lapis/issues/318","id":99534287,"number":318,"title":"disable response when using ngx.print directly","user":{"login":"rrichardson","id":124171,"avatar_url":"https://avatars.githubusercontent.com/u/124171?v=3","gravatar_id":"","url":"https://api.github.com/users/rrichardson","html_url":"https://github.com/rrichardson","followers_url":"https://api.github.com/users/rrichardson/followers","following_url":"https://api.github.com/users/rrichardson/following{/other_user}","gists_url":"https://api.github.com/users/rrichardson/gists{/gist_id}","starred_url":"https://api.github.com/users/rrichardson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrichardson/subscriptions","organizations_url":"https://api.github.com/users/rrichardson/orgs","repos_url":"https://api.github.com/users/rrichardson/repos","events_url":"https://api.github.com/users/rrichardson/events{/privacy}","received_events_url":"https://api.github.com/users/rrichardson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-06T22:04:17Z","updated_at":"2015-08-06T22:42:33Z","closed_at":"2015-08-06T22:42:33Z","body":"I have a situation where I want to directly write out some mmap'd data in response to a route handler. \r\n\r\nThe current result is that the data gets written out of the socket correctly, it is then followed by: \r\n```\r\n<!DOCTYPE HTML><html lang=\"en\"><head><title>Lapis Page</title></head><body></body></html>\r\n```\r\n\r\nHow can I tell lapis not to send down any response? \r\n\r\nI've tried to set the content and content type in my handler as follows: \r\n```\r\n    self.res.headers[\"Content-Type\"] = \"text/plain\"\r\n    self.res.content = nil\r\n```\r\n\r\nThanks for making such a great framework!"},"comment":{"url":"https://api.github.com/repos/leafo/lapis/issues/comments/128531117","html_url":"https://github.com/leafo/lapis/issues/318#issuecomment-128531117","issue_url":"https://api.github.com/repos/leafo/lapis/issues/318","id":128531117,"user":{"login":"rrichardson","id":124171,"avatar_url":"https://avatars.githubusercontent.com/u/124171?v=3","gravatar_id":"","url":"https://api.github.com/users/rrichardson","html_url":"https://github.com/rrichardson","followers_url":"https://api.github.com/users/rrichardson/followers","following_url":"https://api.github.com/users/rrichardson/following{/other_user}","gists_url":"https://api.github.com/users/rrichardson/gists{/gist_id}","starred_url":"https://api.github.com/users/rrichardson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrichardson/subscriptions","organizations_url":"https://api.github.com/users/rrichardson/orgs","repos_url":"https://api.github.com/users/rrichardson/repos","events_url":"https://api.github.com/users/rrichardson/events{/privacy}","received_events_url":"https://api.github.com/users/rrichardson/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T22:42:33Z","updated_at":"2015-08-06T22:42:33Z","body":"Why yes. Yes it is :)"}}