aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Smith <zach@driver.xyz>2017-05-11 17:51:22 -0700
committerZach Smith <zach@driver.xyz>2017-05-24 13:50:04 -0700
commit59988c13988cece3a2a25db4cc823eb5cbdfc55b (patch)
tree2be59c58829440ea9fded8594ef1ba539531e3e9
parenta81fba794fb41570edaea77ad47d3b96e2e484ec (diff)
downloaddriver-core-59988c13988cece3a2a25db4cc823eb5cbdfc55b.tar.gz
driver-core-59988c13988cece3a2a25db4cc823eb5cbdfc55b.tar.bz2
driver-core-59988c13988cece3a2a25db4cc823eb5cbdfc55b.zip
Add default for query parameter
-rw-r--r--src/main/scala/xyz/driver/core/rest.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/scala/xyz/driver/core/rest.scala b/src/main/scala/xyz/driver/core/rest.scala
index 1f8ddc2..2c169ed 100644
--- a/src/main/scala/xyz/driver/core/rest.scala
+++ b/src/main/scala/xyz/driver/core/rest.scala
@@ -299,7 +299,7 @@ package rest {
protected def jsonEntity(json: JsValue): RequestEntity =
HttpEntity(ContentTypes.`application/json`, json.compactPrint)
- protected def get(baseUri: Uri, path: String, query: Seq[(String, String)]) =
+ protected def get(baseUri: Uri, path: String, query: Seq[(String, String)] = Seq.empty) =
HttpRequest(HttpMethods.GET, endpointUri(baseUri, path, query))
protected def post(baseUri: Uri, path: String, httpEntity: RequestEntity) =