{"action":"closed","issue":{"url":"https://api.github.com/repos/Unknwon/macaron/issues/42","labels_url":"https://api.github.com/repos/Unknwon/macaron/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/Unknwon/macaron/issues/42/comments","events_url":"https://api.github.com/repos/Unknwon/macaron/issues/42/events","html_url":"https://github.com/Unknwon/macaron/issues/42","id":64443161,"number":42,"title":"Setting Response Headers","user":{"login":"limianwang","id":1587797,"avatar_url":"https://avatars.githubusercontent.com/u/1587797?v=3","gravatar_id":"","url":"https://api.github.com/users/limianwang","html_url":"https://github.com/limianwang","followers_url":"https://api.github.com/users/limianwang/followers","following_url":"https://api.github.com/users/limianwang/following{/other_user}","gists_url":"https://api.github.com/users/limianwang/gists{/gist_id}","starred_url":"https://api.github.com/users/limianwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/limianwang/subscriptions","organizations_url":"https://api.github.com/users/limianwang/orgs","repos_url":"https://api.github.com/users/limianwang/repos","events_url":"https://api.github.com/users/limianwang/events{/privacy}","received_events_url":"https://api.github.com/users/limianwang/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Unknwon/macaron/labels/feedback%20needed","name":"feedback needed","color":"fbca04"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-26T05:14:16Z","updated_at":"2015-03-26T20:03:30Z","closed_at":"2015-03-26T20:03:30Z","body":"I am fairly new at Go and Macaron, but I have a question regarding setting response headers.\r\n\r\n```go\r\nfunc main() {\r\n  m := macaron.Classic()\r\n  m.Use(func(ctx *macaron.Context) {\r\n    ctx.Resp.Header.Set('key', value);\r\n  })\r\n}\r\n```\r\n\r\nBut I get an error: `ctx.Resp.Header.Set undefined (type func() http.Header has no field or method Set)`\r\n\r\nWhat have I done wrong?\r\n\r\nThanks!"}}