From 869b5acc286a4412afaf243eecb8b0072b841b96 Mon Sep 17 00:00:00 2001 From: Hiroki Noda Date: Tue, 25 Apr 2023 20:53:29 +0900 Subject: [PATCH] vibed/web-server.md: Fix build issues See https://github.com/dlang-tour/english/issues/355 --- vibed/web-server.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vibed/web-server.md b/vibed/web-server.md index 7339b60..f2d1138 100644 --- a/vibed/web-server.md +++ b/vibed/web-server.md @@ -86,7 +86,7 @@ class WebService // ヘッダ情報
  • タグをリクエストの // ヘッダのプロパティを調べて生成します string[] headers; - foreach(key, value; req.headers) { + foreach(key, value; req.headers.byKeyValue()) { headers ~= "
  • %s: %s
  • " .format(key, value); @@ -100,7 +100,7 @@ class WebService %s - }.format(username_, + }.format(username_.value, headers.join("\n")); res.writeBody(contents, @@ -116,7 +116,7 @@ class WebService

    Your name: %s

    - }.format(username_); + }.format(username); res.writeBody(contents, "text/html; charset=UTF-8");