Skip to content

Commit

Permalink
vibed/web-server.md: Fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Hume2 committed Aug 10, 2022
1 parent ed14dea commit 7a18f33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vibed/web-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class WebService
// tags by inspecting the request's
// headers property.
string[] headers;
foreach(key, value; req.headers) {
foreach(key, value; req.headers.byKeyValue()) {
headers ~=
"<li>%s: %s</li>"
.format(key, value);
Expand All @@ -113,7 +113,7 @@ class WebService
%s
</ul>
</body>
</html>}.format(username_,
</html>}.format(cast(string)username_,
headers.join("\n"));
res.writeBody(contents,
Expand All @@ -129,7 +129,7 @@ class WebService
</head><body>
<h1>Your name: %s</h1>
</body>
</html>}.format(username_);
</html>}.format(cast(string)username_);
res.writeBody(contents,
"text/html; charset=UTF-8");
Expand Down

0 comments on commit 7a18f33

Please sign in to comment.