Skip to content

Commit

Permalink
Reduce slightly the amount of dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Dadoum committed Jun 17, 2023
1 parent 962d2a6 commit 3771304
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
3 changes: 2 additions & 1 deletion dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
13 changes: 9 additions & 4 deletions source/app.d
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import core.time;
import core.memory;

import std.algorithm.searching;
Expand All @@ -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;
Expand Down Expand Up @@ -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);
}
Expand All @@ -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)
Expand Down

0 comments on commit 3771304

Please sign in to comment.