From c577ff0dd886f063295ad804e60ed15caaf63d45 Mon Sep 17 00:00:00 2001 From: Shuma Kurihara Date: Sun, 28 Nov 2021 18:01:57 +0900 Subject: [PATCH] =?UTF-8?q?HTML=E3=81=A7=E8=A6=8B=E5=87=BA=E3=81=97?= =?UTF-8?q?=E3=82=92=E8=A1=A8=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index b307d27f..a6ce2532 100644 --- a/index.js +++ b/index.js @@ -2,9 +2,14 @@ const http = require('http'); const server = http.createServer((req, res) => { res.writeHead(200, { - 'Content-Type': 'text/plain; charset=utf-8' + 'Content-Type': 'text/html; charset=utf-8' }); - res.write(req.headers['user-agent']); + res.write(` + + +

HTMLの一番大きい見出しを表示します

+ + `); res.end(); }); const port = 8000;