Created
December 12, 2014 02:44
-
-
Save guodong1111/94bc40fcfd0149ba47ee to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
@Override | |
public Map<String, String> getHeaders() throws AuthFailureError { | |
Map<String, String> headers = super.getHeaders(); | |
Map<String, String> newHeaders = new HashMap<String, String>(); | |
newHeaders.putAll(headers); | |
newHeaders.put("User-Agent", "Mozilla/5.0"); | |
return newHeaders; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment