diff --git a/dub.json b/dub.json index 5154d2d..bb9ef6f 100644 --- a/dub.json +++ b/dub.json @@ -11,7 +11,8 @@ "version": "b131c625da882700cdda46fcc5172b79eed25f43" }, "slf4d": "~>2.1.1", - "vibe-d": "~>0.9.7-alpha.2" + "vibe-d:web": "~>0.9.7-alpha.2", + "vibe-d:http": "~>0.9.7-alpha.2" }, "configurations": [ diff --git a/source/app.d b/source/app.d index 1d33818..eb47b70 100644 --- a/source/app.d +++ b/source/app.d @@ -1,3 +1,4 @@ +import core.time; import core.memory; import std.algorithm.searching; @@ -16,7 +17,11 @@ import std.uni; import std.uuid; import std.zip; -import vibe.d; +import vibe.core.core; +import vibe.http.websockets; +import vibe.http.server; +import vibe.http.router; +import vibe.web.web; import slf4d; import slf4d: Logger; @@ -175,7 +180,7 @@ class AnisetteService { "X-Mme-Device-Id": v1Device.uniqueDeviceIdentifier, ]; - response.headers["Implementation-Version"] = brandingCode; + res.headers["Implementation-Version"] = brandingCode; res.writeBody(responseJson.toString(JSONOptions.doNotEscapeSlashes), "application/json"); log.infoF!"[>>] 200 OK %s"(responseJson); } @@ -190,8 +195,8 @@ class AnisetteService { "user_agent": "akd/1.0 CFNetwork/808.1.4" ]; - response.headers["Implementation-Version"] = brandingCode; - response.writeBody(responseJson.toString(JSONOptions.doNotEscapeSlashes), "application/json"); + res.headers["Implementation-Version"] = brandingCode; + res.writeBody(responseJson.toString(JSONOptions.doNotEscapeSlashes), "application/json"); } @method(HTTPMethod.POST)