mirror of
https://github.com/FraMecca/Buridans_donkey.git
synced 2024-03-20 11:20:15 +01:00
content type first
This commit is contained in:
parent
e84c864a10
commit
ffc6206737
1 changed files with 1 additions and 1 deletions
|
@ -88,8 +88,8 @@ void handleRequest(scope HTTPServerRequest req, scope HTTPServerResponse res)
|
||||||
auto engine = path[1].name;
|
auto engine = path[1].name;
|
||||||
auto args = path[2].name.split(",");
|
auto args = path[2].name.split(",");
|
||||||
const result = shuffle(args, engine);
|
const result = shuffle(args, engine);
|
||||||
|
|
||||||
result.visit!((string [] r) {
|
result.visit!((string [] r) {
|
||||||
res.headers["Content-Type"] = "text/html";
|
|
||||||
immutable body = "Asino says:</br>" ~
|
immutable body = "Asino says:</br>" ~
|
||||||
(r.length == 2 ?
|
(r.length == 2 ?
|
||||||
r[0] :
|
r[0] :
|
||||||
|
|
Loading…
Reference in a new issue