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
kubo39 committed Apr 25, 2023
1 parent a5665bb commit 869b5ac
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 @@ -86,7 +86,7 @@ class WebService
// ヘッダ情報<li>タグをリクエストの
// ヘッダのプロパティを調べて生成します
string[] headers;
foreach(key, value; req.headers) {
foreach(key, value; req.headers.byKeyValue()) {
headers ~=
"<li>%s: %s</li>"
.format(key, value);
Expand All @@ -100,7 +100,7 @@ class WebService
%s
</ul>
</body>
</html>}.format(username_,
</html>}.format(username_.value,
headers.join("\n"));
res.writeBody(contents,
Expand All @@ -116,7 +116,7 @@ class WebService
</head><body>
<h1>Your name: %s</h1>
</body>
</html>}.format(username_);
</html>}.format(username);
res.writeBody(contents,
"text/html; charset=UTF-8");
Expand Down

0 comments on commit 869b5ac

Please sign in to comment.