aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Smith <zach@driver.xyz>2017-03-01 14:16:33 -0800
committerZach Smith <zach@driver.xyz>2017-03-01 14:16:33 -0800
commit50757c28be52da5c57021c9ca3c9fcc664e6e296 (patch)
tree9f2c20674427869bb4f09fce91535d908e86334e
parent2d37efd815846e976d1bf8aee5c20727bb89b09e (diff)
downloaddriver-core-0.10.23.tar.gz
driver-core-0.10.23.tar.bz2
driver-core-0.10.23.zip
Fix bug in rest post methodsv0.10.23
-rw-r--r--src/main/scala/xyz/driver/core/rest.scala4
1 files changed, 2 insertions, 2 deletions
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))