/src/main/java/org/htmlunit/html/HtmlImage.java
final WebRequest request = new WebRequest( browser.getImgAcceptHeader( ) , browser.getAcceptEncodingHeader( ) ) ;
final WebRequest request = new WebRequest ( url, browser.getImgAcceptHeader ( ) , browser.getAcceptEncodingHeader ( ) ) ;
final HtmlPage page = (HtmlPage) getPage(); final WebClient webClient = page.getWebClient(); final BrowserVersion browser = webClient.getBrowserVersion(); if (!(browser.hasFeature(HTMLIMAGE_BLANK_SRC_AS_EMPTY) && StringUtils.isBlank(src))) { final URL url = page.getFullyQualifiedUrl(src); <extra_id_0> request.setCharset(page.getCharset()); request.setRefererlHeader(page.getUrl()); imageWebResponse_ = webClient.loadWebResponse(request); } } closeImageData();