{"action":"opened","issue":{"url":"https://api.github.com/repos/edusoho/edusoho/issues/34","repository_url":"https://api.github.com/repos/edusoho/edusoho","labels_url":"https://api.github.com/repos/edusoho/edusoho/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/edusoho/edusoho/issues/34/comments","events_url":"https://api.github.com/repos/edusoho/edusoho/issues/34/events","html_url":"https://github.com/edusoho/edusoho/issues/34","id":316468265,"number":34,"title":"How to set custom response headers","user":{"login":"ts-3156","id":649961,"avatar_url":"https://avatars1.githubusercontent.com/u/649961?v=4","gravatar_id":"","url":"https://api.github.com/users/ts-3156","html_url":"https://github.com/ts-3156","followers_url":"https://api.github.com/users/ts-3156/followers","following_url":"https://api.github.com/users/ts-3156/following{/other_user}","gists_url":"https://api.github.com/users/ts-3156/gists{/gist_id}","starred_url":"https://api.github.com/users/ts-3156/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ts-3156/subscriptions","organizations_url":"https://api.github.com/users/ts-3156/orgs","repos_url":"https://api.github.com/users/ts-3156/repos","events_url":"https://api.github.com/users/ts-3156/events{/privacy}","received_events_url":"https://api.github.com/users/ts-3156/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-21T06:57:33Z","updated_at":"2018-04-21T06:57:33Z","closed_at":null,"author_association":"NONE","body":"I try to set custom response headers to write user's id to access_log via nginx. Could you tell me how to set them in edusoho(Symfony version 2.8.18)?\r\n\r\nWhat I want to do is below:\r\n\r\n```\r\n# Output X-User-Id: 0000 in edusoho\r\nsomething_to_print_response_header('X-User-Id', something_to_get_user_id) # <- I want know this code.\r\n\r\n# Write user_id to access_log In nginx.conf\r\nlog_format main '... $sent_http_user_id ...';\r\n```\r\n\r\n"}}
{"actor":{"display_login":"ts-3156"}}