Skip to content

Commit

Permalink
Set the content type in proxy settings test.
Browse files Browse the repository at this point in the history
Without this, the htmlunit driver believes we've returned a page of text,
and then can't find elements.
  • Loading branch information
shs96c committed Dec 12, 2013
1 parent 3f0fc3d commit 69bedbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions java/client/test/org/openqa/selenium/ProxySettingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ private WebServer createSimpleHttpServer(final String responseHtml) {
public void handleHttpRequest(
HttpRequest request, HttpResponse response, HttpControl control) {
response.charset(Charsets.UTF_8)
.header(HttpHeaders.CONTENT_TYPE, "text/html")
.content(responseHtml)
.end();
}
Expand Down

0 comments on commit 69bedbb

Please sign in to comment.