{"action":"closed","issue":{"url":"https://api.github.com/repos/spring-projects/spring-restdocs/issues/134","labels_url":"https://api.github.com/repos/spring-projects/spring-restdocs/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-restdocs/issues/134/comments","events_url":"https://api.github.com/repos/spring-projects/spring-restdocs/issues/134/events","html_url":"https://github.com/spring-projects/spring-restdocs/issues/134","id":107748916,"number":134,"title":"Host header cannot be removed by a preprocessor","user":{"login":"kpb","id":532490,"avatar_url":"https://avatars.githubusercontent.com/u/532490?v=3","gravatar_id":"","url":"https://api.github.com/users/kpb","html_url":"https://github.com/kpb","followers_url":"https://api.github.com/users/kpb/followers","following_url":"https://api.github.com/users/kpb/following{/other_user}","gists_url":"https://api.github.com/users/kpb/gists{/gist_id}","starred_url":"https://api.github.com/users/kpb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kpb/subscriptions","organizations_url":"https://api.github.com/users/kpb/orgs","repos_url":"https://api.github.com/users/kpb/repos","events_url":"https://api.github.com/users/kpb/events{/privacy}","received_events_url":"https://api.github.com/users/kpb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/spring-projects/spring-restdocs/milestones/3","html_url":"https://github.com/spring-projects/spring-restdocs/milestones/1.0.0.RELEASE","labels_url":"https://api.github.com/repos/spring-projects/spring-restdocs/milestones/3/labels","id":1294991,"number":3,"title":"1.0.0.RELEASE","description":"","creator":{"login":"wilkinsona","id":914682,"avatar_url":"https://avatars.githubusercontent.com/u/914682?v=3","gravatar_id":"","url":"https://api.github.com/users/wilkinsona","html_url":"https://github.com/wilkinsona","followers_url":"https://api.github.com/users/wilkinsona/followers","following_url":"https://api.github.com/users/wilkinsona/following{/other_user}","gists_url":"https://api.github.com/users/wilkinsona/gists{/gist_id}","starred_url":"https://api.github.com/users/wilkinsona/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wilkinsona/subscriptions","organizations_url":"https://api.github.com/users/wilkinsona/orgs","repos_url":"https://api.github.com/users/wilkinsona/repos","events_url":"https://api.github.com/users/wilkinsona/events{/privacy}","received_events_url":"https://api.github.com/users/wilkinsona/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":15,"state":"open","created_at":"2015-09-08T09:27:29Z","updated_at":"2015-09-28T14:27:26Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-09-22T16:16:33Z","updated_at":"2015-09-28T14:27:26Z","closed_at":"2015-09-28T14:27:26Z","body":"For example:\r\n```java\r\nthis.mockMvc.perform(get(\"/index\").accept(MediaType.APPLICATION_JSON))\r\n                    .andExpect(status().isOk())\r\n                    .andDo(document(\"index\", preprocessRequest(removeHeaders(\"Host\"))));\r\n```\r\nhttp-request.adoc still contains:\r\n\r\nGET /deployment/cluster/current HTTP/1.1\r\nHost: host.address\r\nAccept: application/json\r\n\r\nand the generated html contains the same.\r\n\r\nI've tried all the other preprocessors  (prettyPrint, replacePattern, etc.) to the preProcessRequest and preProcessResponse with no luck."}}