{"action":"created","comment":{"url":"https://api.github.com/repos/openresty/headers-more-nginx-module/pulls/comments/75178518","id":75178518,"diff_hunk":"@@ -695,6 +714,11 @@ ngx_http_headers_more_parse_directive(ngx_conf_t *cf, ngx_command_t *ngx_cmd,\n \n     if (cmd->headers->nelts == 0) {\n         cmd->headers = NULL;\n+    } else {","path":"src/ngx_http_headers_more_headers_out.c","position":76,"original_position":76,"commit_id":"b0734396dd4ec2c81a4aa9a513f158130cbce2d9","original_commit_id":"b0734396dd4ec2c81a4aa9a513f158130cbce2d9","user":{"login":"agentzh","id":56241,"avatar_url":"https://avatars.githubusercontent.com/u/56241?v=3","gravatar_id":"","url":"https://api.github.com/users/agentzh","html_url":"https://github.com/agentzh","followers_url":"https://api.github.com/users/agentzh/followers","following_url":"https://api.github.com/users/agentzh/following{/other_user}","gists_url":"https://api.github.com/users/agentzh/gists{/gist_id}","starred_url":"https://api.github.com/users/agentzh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agentzh/subscriptions","organizations_url":"https://api.github.com/users/agentzh/orgs","repos_url":"https://api.github.com/users/agentzh/repos","events_url":"https://api.github.com/users/agentzh/events{/privacy}","received_events_url":"https://api.github.com/users/agentzh/received_events","type":"User","site_admin":false},"body":"Ditto.","created_at":"2016-08-17T18:23:51Z","updated_at":"2016-08-17T18:23:51Z","html_url":"https://github.com/openresty/headers-more-nginx-module/pull/65#discussion_r75178518","pull_request_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/pulls/65","_links":{"self":{"href":"https://api.github.com/repos/openresty/headers-more-nginx-module/pulls/comments/75178518"},"html":{"href":"https://github.com/openresty/headers-more-nginx-module/pull/65#discussion_r75178518"},"pull_request":{"href":"https://api.github.com/repos/openresty/headers-more-nginx-module/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/openresty/headers-more-nginx-module/pulls/65","id":81663990,"html_url":"https://github.com/openresty/headers-more-nginx-module/pull/65","diff_url":"https://github.com/openresty/headers-more-nginx-module/pull/65.diff","patch_url":"https://github.com/openresty/headers-more-nginx-module/pull/65.patch","issue_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/issues/65","number":65,"state":"open","locked":false,"title":"Add headers if not set","user":{"login":"detailyang","id":3370345,"avatar_url":"https://avatars.githubusercontent.com/u/3370345?v=3","gravatar_id":"","url":"https://api.github.com/users/detailyang","html_url":"https://github.com/detailyang","followers_url":"https://api.github.com/users/detailyang/followers","following_url":"https://api.github.com/users/detailyang/following{/other_user}","gists_url":"https://api.github.com/users/detailyang/gists{/gist_id}","starred_url":"https://api.github.com/users/detailyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/detailyang/subscriptions","organizations_url":"https://api.github.com/users/detailyang/orgs","repos_url":"https://api.github.com/users/detailyang/repos","events_url":"https://api.github.com/users/detailyang/events{/privacy}","received_events_url":"https://api.github.com/users/detailyang/received_events","type":"User","site_admin":false},"body":"Hello.\r\nThis PR is about the issue #60 for @SamMousa . It would add header if not present the specified header.\r\nnew option (-i) usage as the following:\r\n\r\n````bash\r\n # add input header X-Foo *only* if it `X-Foo` doesnt exist\r\n more_set_input_headers -i 'X-Foo: howdy';\r\n\r\n # add output header X-Foo *only* if it `X-Foo` doesnt exist\r\n more_set_headers -i 'X-Foo: howdy';\r\n````\r\n\r\n@agentzh please review this PR :grin:","created_at":"2016-08-17T15:27:46Z","updated_at":"2016-08-17T18:23:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d7c3026d47fb1a607aea96006c1a09f99289271d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/pulls/65/commits","review_comments_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/pulls/65/comments","review_comment_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/issues/65/comments","statuses_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/statuses/b0734396dd4ec2c81a4aa9a513f158130cbce2d9","head":{"label":"detailyang:master","ref":"master","sha":"b0734396dd4ec2c81a4aa9a513f158130cbce2d9","user":{"login":"detailyang","id":3370345,"avatar_url":"https://avatars.githubusercontent.com/u/3370345?v=3","gravatar_id":"","url":"https://api.github.com/users/detailyang","html_url":"https://github.com/detailyang","followers_url":"https://api.github.com/users/detailyang/followers","following_url":"https://api.github.com/users/detailyang/following{/other_user}","gists_url":"https://api.github.com/users/detailyang/gists{/gist_id}","starred_url":"https://api.github.com/users/detailyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/detailyang/subscriptions","organizations_url":"https://api.github.com/users/detailyang/orgs","repos_url":"https://api.github.com/users/detailyang/repos","events_url":"https://api.github.com/users/detailyang/events{/privacy}","received_events_url":"https://api.github.com/users/detailyang/received_events","type":"User","site_admin":false},"repo":{"id":64765765,"name":"headers-more-nginx-module","full_name":"detailyang/headers-more-nginx-module","owner":{"login":"detailyang","id":3370345,"avatar_url":"https://avatars.githubusercontent.com/u/3370345?v=3","gravatar_id":"","url":"https://api.github.com/users/detailyang","html_url":"https://github.com/detailyang","followers_url":"https://api.github.com/users/detailyang/followers","following_url":"https://api.github.com/users/detailyang/following{/other_user}","gists_url":"https://api.github.com/users/detailyang/gists{/gist_id}","starred_url":"https://api.github.com/users/detailyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/detailyang/subscriptions","organizations_url":"https://api.github.com/users/detailyang/orgs","repos_url":"https://api.github.com/users/detailyang/repos","events_url":"https://api.github.com/users/detailyang/events{/privacy}","received_events_url":"https://api.github.com/users/detailyang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/detailyang/headers-more-nginx-module","description":"Set, add, and clear arbitrary output headers in NGINX http servers","fork":true,"url":"https://api.github.com/repos/detailyang/headers-more-nginx-module","forks_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/forks","keys_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/keys{/key_id}","collaborators_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/teams","hooks_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/hooks","issue_events_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/issues/events{/number}","events_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/events","assignees_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/assignees{/user}","branches_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/branches{/branch}","tags_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/tags","blobs_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/git/refs{/sha}","trees_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/git/trees{/sha}","statuses_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/statuses/{sha}","languages_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/languages","stargazers_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/stargazers","contributors_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/contributors","subscribers_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/subscribers","subscription_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/subscription","commits_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/commits{/sha}","git_commits_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/git/commits{/sha}","comments_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/comments{/number}","issue_comment_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/issues/comments{/number}","contents_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/contents/{+path}","compare_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/compare/{base}...{head}","merges_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/merges","archive_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/downloads","issues_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/issues{/number}","pulls_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/pulls{/number}","milestones_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/milestones{/number}","notifications_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/labels{/name}","releases_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/releases{/id}","deployments_url":"https://api.github.com/repos/detailyang/headers-more-nginx-module/deployments","created_at":"2016-08-02T14:51:35Z","updated_at":"2016-08-02T14:51:37Z","pushed_at":"2016-08-17T15:15:36Z","git_url":"git://github.com/detailyang/headers-more-nginx-module.git","ssh_url":"git@github.com:detailyang/headers-more-nginx-module.git","clone_url":"https://github.com/detailyang/headers-more-nginx-module.git","svn_url":"https://github.com/detailyang/headers-more-nginx-module","homepage":"","size":483,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openresty:master","ref":"master","sha":"84241e444b0fab8541e1c3bbbb5459223512203a","user":{"login":"openresty","id":7390180,"avatar_url":"https://avatars.githubusercontent.com/u/7390180?v=3","gravatar_id":"","url":"https://api.github.com/users/openresty","html_url":"https://github.com/openresty","followers_url":"https://api.github.com/users/openresty/followers","following_url":"https://api.github.com/users/openresty/following{/other_user}","gists_url":"https://api.github.com/users/openresty/gists{/gist_id}","starred_url":"https://api.github.com/users/openresty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openresty/subscriptions","organizations_url":"https://api.github.com/users/openresty/orgs","repos_url":"https://api.github.com/users/openresty/repos","events_url":"https://api.github.com/users/openresty/events{/privacy}","received_events_url":"https://api.github.com/users/openresty/received_events","type":"Organization","site_admin":false},"repo":{"id":374483,"name":"headers-more-nginx-module","full_name":"openresty/headers-more-nginx-module","owner":{"login":"openresty","id":7390180,"avatar_url":"https://avatars.githubusercontent.com/u/7390180?v=3","gravatar_id":"","url":"https://api.github.com/users/openresty","html_url":"https://github.com/openresty","followers_url":"https://api.github.com/users/openresty/followers","following_url":"https://api.github.com/users/openresty/following{/other_user}","gists_url":"https://api.github.com/users/openresty/gists{/gist_id}","starred_url":"https://api.github.com/users/openresty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openresty/subscriptions","organizations_url":"https://api.github.com/users/openresty/orgs","repos_url":"https://api.github.com/users/openresty/repos","events_url":"https://api.github.com/users/openresty/events{/privacy}","received_events_url":"https://api.github.com/users/openresty/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openresty/headers-more-nginx-module","description":"Set, add, and clear arbitrary output headers in NGINX http servers","fork":false,"url":"https://api.github.com/repos/openresty/headers-more-nginx-module","forks_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/forks","keys_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/teams","hooks_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/hooks","issue_events_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/issues/events{/number}","events_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/events","assignees_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/assignees{/user}","branches_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/branches{/branch}","tags_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/tags","blobs_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/git/refs{/sha}","trees_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/statuses/{sha}","languages_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/languages","stargazers_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/stargazers","contributors_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/contributors","subscribers_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/subscribers","subscription_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/subscription","commits_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/commits{/sha}","git_commits_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/git/commits{/sha}","comments_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/comments{/number}","issue_comment_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/issues/comments{/number}","contents_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/contents/{+path}","compare_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/merges","archive_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/downloads","issues_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/issues{/number}","pulls_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/pulls{/number}","milestones_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/milestones{/number}","notifications_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/labels{/name}","releases_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/releases{/id}","deployments_url":"https://api.github.com/repos/openresty/headers-more-nginx-module/deployments","created_at":"2009-11-16T08:26:27Z","updated_at":"2016-08-17T09:50:22Z","pushed_at":"2016-08-17T15:27:46Z","git_url":"git://github.com/openresty/headers-more-nginx-module.git","ssh_url":"git@github.com:openresty/headers-more-nginx-module.git","clone_url":"https://github.com/openresty/headers-more-nginx-module.git","svn_url":"https://github.com/openresty/headers-more-nginx-module","homepage":"","size":598,"stargazers_count":449,"watchers_count":449,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":65,"mirror_url":null,"open_issues_count":21,"forks":65,"open_issues":21,"watchers":449,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openresty/headers-more-nginx-module/pulls/65"},"html":{"href":"https://github.com/openresty/headers-more-nginx-module/pull/65"},"issue":{"href":"https://api.github.com/repos/openresty/headers-more-nginx-module/issues/65"},"comments":{"href":"https://api.github.com/repos/openresty/headers-more-nginx-module/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/openresty/headers-more-nginx-module/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/openresty/headers-more-nginx-module/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openresty/headers-more-nginx-module/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/openresty/headers-more-nginx-module/statuses/b0734396dd4ec2c81a4aa9a513f158130cbce2d9"}}}}
{"actor":{"display_login":"agentzh"}}