Permalink
Browse files

Fix the WS API

  • Loading branch information...
1 parent 5e8e901 commit 4570dba76291044adedc98a2109612436b8a382c @erwan erwan committed Nov 14, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 framework/play/src/main/scala/play/api/WS.scala
@@ -57,7 +57,7 @@ object WS {
*/
def options(): HttpPromise[Response] = execute("OPTION")
- private def execute(method: String) = new HttpPromise[Response](WS.client.executeRequest(this.setMethod("HEAD").build()))
+ private def execute(method: String) = new HttpPromise[Response](WS.client.executeRequest(this.setMethod(method).build()))
}
class HttpPromise[A](listenable: ListenableFuture[A]) extends Promise[A] {

0 comments on commit 4570dba

Please sign in to comment.