Skip to content

Commit 742f44e

Browse files
Minor fixes to pass the verification
1 parent b19578e commit 742f44e

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

frameworks/D/photon-http/source/app.d

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ class BenchmarkProcessor : HttpProcessor {
7676
updates(req.uri);
7777
} else if(req.uri == "/fortunes") {
7878
fortunes();
79-
}
80-
else {
79+
} else {
8180
respondWith("Not found", HttpStatus.NotFound, plainTextHeaders);
8281
}
8382
}
@@ -185,7 +184,7 @@ class BenchmarkProcessor : HttpProcessor {
185184
foreach (ref f; result) {
186185
buf.put(FortuneResponse(f[0].as!PGinteger, f[1].data.alloced));
187186
}
188-
buf.put(FortuneResponse(0, "Additional fortune added at request time"));
187+
buf.put(FortuneResponse(0, "Additional fortune added at request time."));
189188
auto data = buf.data;
190189
data.sort!((a, b) => a.message < b.message);
191190
mustache!(import("template.mustache"))(data, outBuf);

frameworks/D/photon-http/template.mustache

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
!<!DOCTYPE html>
1+
<!DOCTYPE html>
22
<html>
33
<head><title>Fortunes</title></head>
44
<body>
@@ -10,4 +10,3 @@
1010
</table>
1111
</body>
1212
</html>
13-

0 commit comments

Comments
 (0)