From 2140dc5637ca37688c23dd5328ae3ac67c11cfac Mon Sep 17 00:00:00 2001 From: Michael Skogberg Date: Wed, 16 Oct 2024 20:18:05 +0300 Subject: [PATCH] Clarify parser --- pimpcloud/app/controllers/pimpcloud/Phones.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pimpcloud/app/controllers/pimpcloud/Phones.scala b/pimpcloud/app/controllers/pimpcloud/Phones.scala index 34c1c6fc..5d99ddbf 100644 --- a/pimpcloud/app/controllers/pimpcloud/Phones.scala +++ b/pimpcloud/app/controllers/pimpcloud/Phones.scala @@ -59,7 +59,7 @@ class Phones(comps: ControllerComponents, tags: CloudTags, phoneAuth: BaseSecuri def ping = proxiedGetAction(Ping) - def pingAuth = executeProxied(parse.anyContent)(VersionKey, _ => Right(Json.obj())): (_, json) => + def pingAuth = executeProxied(parse.ignore(()))(VersionKey, _ => Right(Json.obj())): (_, json) => json .as[Version] .fold( @@ -226,7 +226,7 @@ class Phones(comps: ControllerComponents, tags: CloudTags, phoneAuth: BaseSecuri cmd: String, build: RequestHeader => Either[String, W] )(toHtml: Json => Decoder.Result[C]) = - executeProxied(parse.anyContent)(cmd, build): (req, json) => + executeProxied(parse.ignore(()))(cmd, build): (req, json) => pimpResult(req)( html = toHtml(json).fold( err => onGatewayParseErrorResult(err),