use of com.github.tomakehurst.wiremock.http.HttpHeaders in project spring-cloud-netflix by spring-cloud.
the class WireMockRestAssuredRequestAdapter method getHeaders.
@Override
public HttpHeaders getHeaders() {
List<HttpHeader> headers = new ArrayList<>();
for (Header header : request.getHeaders()) {
String value = header.getValue();
if ("accept".equals(header.getName().toLowerCase()) && "*/*".equals(value)) {
continue;
}
headers.add(new HttpHeader(header.getName(), header.getValue()));
}
return new HttpHeaders(headers);
}
Aggregations