Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
Enable timeout reporting for HTTP requests
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiugh committed Mar 31, 2010
1 parent 10f34b1 commit 63e34fc
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -35,7 +35,8 @@ public Delegate(HandlerManager eventBus, String url, boolean isGet) {
} else {
rb = new RequestBuilder(RequestBuilder.POST, url);
}
rb.setHeader("Content-Type", "application/x-www-form-urlencoded");
rb.setHeader("Content-Type", "application/x-www-form-urlencoded");
rb.setTimeoutMillis(2000);
}

private String packParameters(HashMap<String, String> params) {
Expand Down

0 comments on commit 63e34fc

Please sign in to comment.