From 2479b14aba31f535ff014db0370f0be51c82d28a Mon Sep 17 00:00:00 2001 From: Aleksey Ivanov Date: Wed, 23 May 2018 19:07:42 +0300 Subject: [PATCH] Fix TestServer::post --- src/test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test.rs b/src/test.rs index 135135f7..5e99652b 100644 --- a/src/test.rs +++ b/src/test.rs @@ -217,7 +217,7 @@ impl TestServer { /// Create `POST` request pub fn post(&self) -> ClientRequestBuilder { - ClientRequest::get(self.url("/").as_str()) + ClientRequest::post(self.url("/").as_str()) } /// Create `HEAD` request