new feature

feature
Dmitry 9 months ago
parent 6bb949ec18
commit dafeb00741

@ -14,12 +14,11 @@ const server = http.createServer(async (req, res) => {
<title>simple_server</title> <title>simple_server</title>
</head> </head>
<body> <body>
<h1>HTML</h1> <h1>HTML2</h1>
</body> </body>
</html> </html>
`; `;
// Отправка HTML клиенту
res.end(htmlContent); res.end(htmlContent);
} catch (error) { } catch (error) {
console.error('Ошибка:', error.message); console.error('Ошибка:', error.message);

Loading…
Cancel
Save

Powered by TurnKey Linux.