{"action":"created","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/240","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/240/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/240/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/240/events","html_url":"https://github.com/spring-cloud/spring-cloud-config/issues/240","id":109072813,"number":240,"title":"Case sensitive headers in web hooks","user":{"login":"sergiorc","id":3658801,"avatar_url":"https://avatars.githubusercontent.com/u/3658801?v=3","gravatar_id":"","url":"https://api.github.com/users/sergiorc","html_url":"https://github.com/sergiorc","followers_url":"https://api.github.com/users/sergiorc/followers","following_url":"https://api.github.com/users/sergiorc/following{/other_user}","gists_url":"https://api.github.com/users/sergiorc/gists{/gist_id}","starred_url":"https://api.github.com/users/sergiorc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergiorc/subscriptions","organizations_url":"https://api.github.com/users/sergiorc/orgs","repos_url":"https://api.github.com/users/sergiorc/repos","events_url":"https://api.github.com/users/sergiorc/events{/privacy}","received_events_url":"https://api.github.com/users/sergiorc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/milestones/11","html_url":"https://github.com/spring-cloud/spring-cloud-config/milestones/1.1.0","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/milestones/11/labels","id":1202274,"number":11,"title":"1.1.0","description":"","creator":{"login":"dsyer","id":124075,"avatar_url":"https://avatars.githubusercontent.com/u/124075?v=3","gravatar_id":"","url":"https://api.github.com/users/dsyer","html_url":"https://github.com/dsyer","followers_url":"https://api.github.com/users/dsyer/followers","following_url":"https://api.github.com/users/dsyer/following{/other_user}","gists_url":"https://api.github.com/users/dsyer/gists{/gist_id}","starred_url":"https://api.github.com/users/dsyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsyer/subscriptions","organizations_url":"https://api.github.com/users/dsyer/orgs","repos_url":"https://api.github.com/users/dsyer/repos","events_url":"https://api.github.com/users/dsyer/events{/privacy}","received_events_url":"https://api.github.com/users/dsyer/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":13,"state":"open","created_at":"2015-07-10T10:57:35Z","updated_at":"2015-09-30T16:29:26Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-09-30T12:01:58Z","updated_at":"2015-09-30T16:29:58Z","closed_at":"2015-09-30T16:29:05Z","body":"Two issues about github monitoring:\r\n\r\nTo retrieve github hook call, I have had to define a GithubPropertyPathNotificationExtractor:\r\n\r\n```\r\n@Bean\r\n\tpublic PropertyPathNotificationExtractor githubPathExtractor() {\r\n\t\treturn new GithubPropertyPathNotificationExtractor();\r\n```\r\nIf this is the desired way to configure git provider, It should be included in documentation.\r\nPerhaps, extractor implementation could be retrieved parsing git uri path.\r\n\r\n\r\nSecond issue is related with headers case.\r\nMy config server is using Brixton.M1 parent and default configuration\r\n\r\n```\r\n@Configuration\r\n@EnableAutoConfiguration\r\n@EnableConfigServer\r\n```\r\nI have no idea why every request done against config server is received with http headers in lowercase.\r\nThis is causing GithubPropertyPathNotificationExtractor doesn't work, because X-Github-Event header is not found, but the behaviour is general.\r\n\r\nRequest against EnvironmentController are also coming with lowercase headers.\r\nI'm using a RequestDumperFilter to show requests headers.\r\n\r\nRequest againts my application service (Spring Boot + Spring Cloud config client) are coming with correct headers. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/comments/144468047","html_url":"https://github.com/spring-cloud/spring-cloud-config/issues/240#issuecomment-144468047","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-config/issues/240","id":144468047,"user":{"login":"dsyer","id":124075,"avatar_url":"https://avatars.githubusercontent.com/u/124075?v=3","gravatar_id":"","url":"https://api.github.com/users/dsyer","html_url":"https://github.com/dsyer","followers_url":"https://api.github.com/users/dsyer/followers","following_url":"https://api.github.com/users/dsyer/following{/other_user}","gists_url":"https://api.github.com/users/dsyer/gists{/gist_id}","starred_url":"https://api.github.com/users/dsyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsyer/subscriptions","organizations_url":"https://api.github.com/users/dsyer/orgs","repos_url":"https://api.github.com/users/dsyer/repos","events_url":"https://api.github.com/users/dsyer/events{/privacy}","received_events_url":"https://api.github.com/users/dsyer/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T16:29:58Z","updated_at":"2015-09-30T16:29:58Z","body":"I think I fixed the case sensitive issue. If there is something else please open another issue."}}