Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Typo fixed #11

Merged
merged 1 commit into from over 1 year ago

2 participants

Ray Vahey Marc Palmer
Ray Vahey

Hi Marc,

just a typo, setAdditionalHeaders instead of addAdditionalHeaders

Cheers
Ray

Marc Palmer marcpalmer merged commit 67fd58d into from September 25, 2012
Marc Palmer marcpalmer closed this September 25, 2012
Marc Palmer
Owner

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Aug 23, 2012
Ray Vahey called the correct method for setting HTTP headers 9555134
This page is out of date. Refresh to see the latest.
6  src/groovy/com/grailsrocks/functionaltest/client/BrowserClient.groovy
@@ -231,7 +231,7 @@ class BrowserClient implements Client, WebWindowListener, HtmlAttributeChangeLis
231 231
         if (currentAuthInfo) {
232 232
             // @todo We could use htmlunit auth stuff here?
233 233
             def encoded = Base64Codec.encode("${currentAuthInfo.user}:${currentAuthInfo.credentials}".getBytes('utf-8'))
234  
-            settings.addAdditionalHeader('Authorization', "Basic "+encoded)
  234
+            settings.setAdditionalHeader('Authorization', "Basic "+encoded)
235 235
         }
236 236
 
237 237
         def wrapper
@@ -246,7 +246,7 @@ class BrowserClient implements Client, WebWindowListener, HtmlAttributeChangeLis
246 246
         }
247 247
         headerLists.each { headers ->
248 248
             for (entry in headers) { 
249  
-                settings.addAdditionalHeader(entry.key, entry.value.toString())
  249
+                settings.setAdditionalHeader(entry.key, entry.value.toString())
250 250
             }
251 251
         }
252 252
 
@@ -302,4 +302,4 @@ class BrowserClient implements Client, WebWindowListener, HtmlAttributeChangeLis
302 302
     }
303 303
     
304 304
 
305  
-}
  305
+}
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.