Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #11 from Indeed/master

Typo fixed
  • Loading branch information...
commit 67fd58d9d4cfe3e2058f10f50d5e824599fe9937 2 parents b2fdbc2 + 9555134
@marcpalmer marcpalmer authored
View
6 src/groovy/com/grailsrocks/functionaltest/client/BrowserClient.groovy
@@ -231,7 +231,7 @@ class BrowserClient implements Client, WebWindowListener, HtmlAttributeChangeLis
if (currentAuthInfo) {
// @todo We could use htmlunit auth stuff here?
def encoded = Base64Codec.encode("${currentAuthInfo.user}:${currentAuthInfo.credentials}".getBytes('utf-8'))
- settings.addAdditionalHeader('Authorization', "Basic "+encoded)
+ settings.setAdditionalHeader('Authorization', "Basic "+encoded)
}
def wrapper
@@ -246,7 +246,7 @@ class BrowserClient implements Client, WebWindowListener, HtmlAttributeChangeLis
}
headerLists.each { headers ->
for (entry in headers) {
- settings.addAdditionalHeader(entry.key, entry.value.toString())
+ settings.setAdditionalHeader(entry.key, entry.value.toString())
}
}
@@ -302,4 +302,4 @@ class BrowserClient implements Client, WebWindowListener, HtmlAttributeChangeLis
}
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.