{"action":"created","issue":{"url":"https://api.github.com/repos/inreachventures/aws-signing-request-interceptor/issues/23","repository_url":"https://api.github.com/repos/inreachventures/aws-signing-request-interceptor","labels_url":"https://api.github.com/repos/inreachventures/aws-signing-request-interceptor/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/inreachventures/aws-signing-request-interceptor/issues/23/comments","events_url":"https://api.github.com/repos/inreachventures/aws-signing-request-interceptor/issues/23/events","html_url":"https://github.com/inreachventures/aws-signing-request-interceptor/issues/23","id":173560232,"number":23,"title":"Issue with \"Connection\"","user":{"login":"aldrinleal","id":253109,"avatar_url":"https://avatars.githubusercontent.com/u/253109?v=3","gravatar_id":"","url":"https://api.github.com/users/aldrinleal","html_url":"https://github.com/aldrinleal","followers_url":"https://api.github.com/users/aldrinleal/followers","following_url":"https://api.github.com/users/aldrinleal/following{/other_user}","gists_url":"https://api.github.com/users/aldrinleal/gists{/gist_id}","starred_url":"https://api.github.com/users/aldrinleal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aldrinleal/subscriptions","organizations_url":"https://api.github.com/users/aldrinleal/orgs","repos_url":"https://api.github.com/users/aldrinleal/repos","events_url":"https://api.github.com/users/aldrinleal/events{/privacy}","received_events_url":"https://api.github.com/users/aldrinleal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-26T23:07:40Z","updated_at":"2016-09-13T10:08:10Z","closed_at":null,"body":"Sometimes (don't ask me about it, sorry), the Signage might break due to the \"Connection\" header:\r\n\r\n```json\r\n{\"message\":\"The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details.\\n\\nThe Canonical String for this request should have been\\n'PUT\\n/user/user/aldrinleal2\\n\\naccept-encoding:gzip,deflate\\nconnection:close\\ncontent-length:107\\ncontent-type:application/json; charset=UTF-8\\nhost:search-wechase-dev-65phvknk3pxuhxrqzpr4hggmvq.us-east-1.es.amazonaws.com\\nuser-agent:Apache-HttpClient/4.5.2 (Java/1.8.0_101)\\nx-amz-date:20160823T135045Z\\n\\naccept-encoding;connection;content-length;content-type;host;user-agent;x-amz-date\\n9192d051542ec4df30c816b8b59d9134d21f6d90878c4f45777b825c9bb9389f'\\n\\nThe String-to-Sign should have been\\n'AWS4-HMAC-SHA256\\n20160823T135045Z\\n20160823/us-east-1/es/aws4_request\\n77575171872045c07f741778e0b18f20121695938077b02519201f81b8187064'\\n\"}\r\n```\r\n\r\nThe shortest change to allow this would be to add this line:\r\n\r\n```java\r\n    final LocalDateTime now = clock.get();\r\n    final AWSCredentials credentials = credentialsProvider.getCredentials();\r\n    final Map<String, Object> result = new TreeMap<>(String.CASE_INSENSITIVE_ORDER);\r\n    result.putAll(headers);\r\n\r\n    result.remove(\"Connection\"); // THIS ONE\r\n\r\n```\r\n\r\nHope it helps."},"comment":{"url":"https://api.github.com/repos/inreachventures/aws-signing-request-interceptor/issues/comments/246635827","html_url":"https://github.com/inreachventures/aws-signing-request-interceptor/issues/23#issuecomment-246635827","issue_url":"https://api.github.com/repos/inreachventures/aws-signing-request-interceptor/issues/23","id":246635827,"user":{"login":"thesmith","id":27687,"avatar_url":"https://avatars.githubusercontent.com/u/27687?v=3","gravatar_id":"","url":"https://api.github.com/users/thesmith","html_url":"https://github.com/thesmith","followers_url":"https://api.github.com/users/thesmith/followers","following_url":"https://api.github.com/users/thesmith/following{/other_user}","gists_url":"https://api.github.com/users/thesmith/gists{/gist_id}","starred_url":"https://api.github.com/users/thesmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thesmith/subscriptions","organizations_url":"https://api.github.com/users/thesmith/orgs","repos_url":"https://api.github.com/users/thesmith/repos","events_url":"https://api.github.com/users/thesmith/events{/privacy}","received_events_url":"https://api.github.com/users/thesmith/received_events","type":"User","site_admin":false},"created_at":"2016-09-13T10:08:10Z","updated_at":"2016-09-13T10:08:10Z","body":"Sorry, I totally missed this issue.\r\n\r\nHave a look at #21. I think this has solved your problem."}}
{"actor":{"display_login":"thesmith"}}