{"action":"created","issue":{"url":"https://api.github.com/repos/evilsocket/bettercap/issues/117","labels_url":"https://api.github.com/repos/evilsocket/bettercap/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/evilsocket/bettercap/issues/117/comments","events_url":"https://api.github.com/repos/evilsocket/bettercap/issues/117/events","html_url":"https://github.com/evilsocket/bettercap/issues/117","id":130088469,"number":117,"title":"Cannot add headers to response.headers in modules","user":{"login":"nstarke","id":2895826,"avatar_url":"https://avatars.githubusercontent.com/u/2895826?v=3","gravatar_id":"","url":"https://api.github.com/users/nstarke","html_url":"https://github.com/nstarke","followers_url":"https://api.github.com/users/nstarke/followers","following_url":"https://api.github.com/users/nstarke/following{/other_user}","gists_url":"https://api.github.com/users/nstarke/gists{/gist_id}","starred_url":"https://api.github.com/users/nstarke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nstarke/subscriptions","organizations_url":"https://api.github.com/users/nstarke/orgs","repos_url":"https://api.github.com/users/nstarke/repos","events_url":"https://api.github.com/users/nstarke/events{/privacy}","received_events_url":"https://api.github.com/users/nstarke/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-31T06:04:25Z","updated_at":"2016-01-31T11:29:49Z","closed_at":"2016-01-31T11:29:49Z","body":"Right now when I try to do something like this:\r\n```\r\nresponse.headers << \"Location: http://example.com/\"\r\n```\r\nThe string ```Location: http://example.com/``` appears in the DOM instead of as a part of the response headers collection.  It appears before the ```<!DOCTYPE>``` in the HTTP response.  Examining the output via CURL reveals an extra line break after the last HTTP header but before the header I am trying to add. According to the HTTP standard, that line break signals the end of the response headers and the beginning of the body.  I tested this in Chrome and FireFox and I assume its the same elsewhere.  "},"comment":{"url":"https://api.github.com/repos/evilsocket/bettercap/issues/comments/177471395","html_url":"https://github.com/evilsocket/bettercap/issues/117#issuecomment-177471395","issue_url":"https://api.github.com/repos/evilsocket/bettercap/issues/117","id":177471395,"user":{"login":"evilsocket","id":86922,"avatar_url":"https://avatars.githubusercontent.com/u/86922?v=3","gravatar_id":"","url":"https://api.github.com/users/evilsocket","html_url":"https://github.com/evilsocket","followers_url":"https://api.github.com/users/evilsocket/followers","following_url":"https://api.github.com/users/evilsocket/following{/other_user}","gists_url":"https://api.github.com/users/evilsocket/gists{/gist_id}","starred_url":"https://api.github.com/users/evilsocket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evilsocket/subscriptions","organizations_url":"https://api.github.com/users/evilsocket/orgs","repos_url":"https://api.github.com/users/evilsocket/repos","events_url":"https://api.github.com/users/evilsocket/events{/privacy}","received_events_url":"https://api.github.com/users/evilsocket/received_events","type":"User","site_admin":false},"created_at":"2016-01-31T11:29:49Z","updated_at":"2016-01-31T11:29:49Z","body":"What about:\r\n\r\n    response[\"Location\"]  = \"http://example.com\"\r\n\r\n[here](https://github.com/evilsocket/bettercap/blob/master/lib/bettercap/proxy/response.rb#L128)"}}