From 50757c28be52da5c57021c9ca3c9fcc664e6e296 Mon Sep 17 00:00:00 2001 From: Zach Smith Date: Wed, 1 Mar 2017 14:16:33 -0800 Subject: Fix bug in rest post methods --- src/main/scala/xyz/driver/core/rest.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/scala/xyz/driver/core/rest.scala') diff --git a/src/main/scala/xyz/driver/core/rest.scala b/src/main/scala/xyz/driver/core/rest.scala index b250ac9..8ce2219 100644 --- a/src/main/scala/xyz/driver/core/rest.scala +++ b/src/main/scala/xyz/driver/core/rest.scala @@ -168,10 +168,10 @@ object rest { HttpRequest(HttpMethods.GET, endpointUri(baseUri, path, query)) protected def post(baseUri: Uri, path: String, httpEntity: RequestEntity) = - HttpRequest(HttpMethods.GET, endpointUri(baseUri, path), entity = httpEntity) + HttpRequest(HttpMethods.POST, endpointUri(baseUri, path), entity = httpEntity) protected def postJson(baseUri: Uri, path: String, json: JsValue) = - HttpRequest(HttpMethods.GET, endpointUri(baseUri, path), entity = jsonEntity(json)) + HttpRequest(HttpMethods.POST, endpointUri(baseUri, path), entity = jsonEntity(json)) protected def delete(baseUri: Uri, path: String) = HttpRequest(HttpMethods.DELETE, endpointUri(baseUri, path)) -- cgit v1.2.3