/src/main/java/org/htmlunit/MockWebConnection.java
if ( rawResponse == null) {
if ( headers != null ) {
statusCode_ = statusCode; statusMessage_ = statusMessage; headers_ = compileHeaders(headers, contentType); } private static List<NameValuePair> compileHeaders(final List<NameValuePair> headers, final String contentType) { final List<NameValuePair> compiledHeaders = new ArrayList<>(); <extra_id_0> compiledHeaders.addAll(headers); } if (contentType != null) { compiledHeaders.add(new NameValuePair(HttpHeader.CONTENT_TYPE, contentType)); } return compiledHeaders;