A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/seleniumhq/selenium/commit/0b853398ef0d4ea553040e7d337cc5677debf4f0 below:

[java] Update check for content-length header · SeleniumHQ/selenium@0b85339 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+1

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+1

-1

lines changed Original file line number Diff line number Diff line change

@@ -84,7 +84,7 @@ public java.net.http.HttpRequest createRequest(HttpRequest req) {

84 84

for (String name : req.getHeaderNames()) {

85 85

// Avoid explicitly setting content-length

86 86

// This prevents the IllegalArgumentException that states 'restricted header name: "Content-Length"'

87 -

if (name.equals("Content-Length")) {

87 +

if (name.equalsIgnoreCase("content-length")) {

88 88

continue;

89 89

}

90 90

for (String value : req.getHeaders(name)) {

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4