Skip to content

Instantly share code, notes, and snippets.

@guodong1111
Created December 12, 2014 02:44
Show Gist options
  • Save guodong1111/94bc40fcfd0149ba47ee to your computer and use it in GitHub Desktop.
Save guodong1111/94bc40fcfd0149ba47ee to your computer and use it in GitHub Desktop.
{
@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