Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #131 from lukas-krecan-gdc/master
Browse files Browse the repository at this point in the history
Setting CookiePolicy to BROWSER_COMPATIBILITY to allow cross domain validation
  • Loading branch information
zsvoboda committed Mar 18, 2013
2 parents a7e5d78 + 9b5c28d commit 3d53bfe
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -39,6 +39,7 @@
import org.apache.commons.httpclient.HttpException;
import org.apache.commons.httpclient.HttpMethod;
import org.apache.commons.httpclient.HttpStatus;
import org.apache.commons.httpclient.cookie.CookiePolicy;
import org.apache.commons.httpclient.methods.DeleteMethod;
import org.apache.commons.httpclient.methods.GetMethod;
import org.apache.commons.httpclient.methods.InputStreamRequestEntity;
Expand Down Expand Up @@ -3067,6 +3068,7 @@ private static <T extends HttpMethod> T configureHttpMethod(T request) {
request.setRequestHeader("Accept", "application/json");
request.setRequestHeader("Accept-Charset", "utf-u");
request.setRequestHeader("User-Agent", "GoodData CL/1.2.66");
request.getParams().setCookiePolicy(CookiePolicy.BROWSER_COMPATIBILITY);
return request;
}

Expand Down

0 comments on commit 3d53bfe

Please sign in to comment.