Skip to content

Commit

Permalink
add more accept headers
Browse files Browse the repository at this point in the history
closes gh-174
  • Loading branch information
hrj committed Oct 3, 2015
1 parent e74aadc commit a6d6da3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Platform_Core/org/lobobrowser/request/RequestEngine.java
Expand Up @@ -313,6 +313,10 @@ private static void addRequestProperties(final URLConnection connection, final C
connection.addRequestProperty("User-Agent", userAgent.toString());
connection.addRequestProperty("Accept-Encoding", "gzip, deflate");

// The following two headers are for GH #174
connection.addRequestProperty("Accept", "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8");
connection.addRequestProperty("Accept-Language", "en-US,en;q=0.5");

// TODO: Harshad: Commenting out X-Java-Version. Check if required.
// connection.addRequestProperty("X-Java-Version", userAgent.getJavaVersion());

Expand Down

0 comments on commit a6d6da3

Please sign in to comment.