This commit is contained in:
Anuj Sahu 2026-03-16 20:38:39 +05:30
parent 1791921cf2
commit 1858c959db

2
app.js
View File

@ -5,7 +5,7 @@ const PORT = 8080;
const server = http.createServer((req, res) => { const server = http.createServer((req, res) => {
if (req.method === 'GET' && req.url === '/') { if (req.method === 'GET' && req.url === '/') {
res.writeHead(200, { 'Content-Type': 'text/plain' }); res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('2nd updateee Hello World'); res.end('3rd updateee Hello World');
} else { } else {
res.writeHead(404, { 'Content-Type': 'text/plain' }); res.writeHead(404, { 'Content-Type': 'text/plain' });
res.end('Not Found'); res.end('Not Found');