From a81fba794fb41570edaea77ad47d3b96e2e484ec Mon Sep 17 00:00:00 2001 From: Zach Smith Date: Thu, 11 May 2017 16:16:31 -0700 Subject: Change signature of RestService#get --- src/main/scala/xyz/driver/core/rest.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/scala/xyz/driver') diff --git a/src/main/scala/xyz/driver/core/rest.scala b/src/main/scala/xyz/driver/core/rest.scala index 3f61246..1f8ddc2 100644 --- a/src/main/scala/xyz/driver/core/rest.scala +++ b/src/main/scala/xyz/driver/core/rest.scala @@ -299,8 +299,8 @@ package rest { protected def jsonEntity(json: JsValue): RequestEntity = HttpEntity(ContentTypes.`application/json`, json.compactPrint) - protected def get(baseUri: Uri, path: String, query: (String, String)*) = - HttpRequest(HttpMethods.GET, endpointUri(baseUri, path, query: _*)) + protected def get(baseUri: Uri, path: String, query: Seq[(String, String)]) = + HttpRequest(HttpMethods.GET, endpointUri(baseUri, path, query)) protected def post(baseUri: Uri, path: String, httpEntity: RequestEntity) = HttpRequest(HttpMethods.POST, endpointUri(baseUri, path), entity = httpEntity) @@ -314,7 +314,7 @@ package rest { protected def endpointUri(baseUri: Uri, path: String) = baseUri.withPath(Uri.Path(path)) - protected def endpointUri(baseUri: Uri, path: String, query: (String, String)*) = + protected def endpointUri(baseUri: Uri, path: String, query: Seq[(String, String)]) = baseUri.withPath(Uri.Path(path)).withQuery(Uri.Query(query: _*)) } -- cgit v1.2.3