Spaces:
Running
Running
Update index.js
Browse files
index.js
CHANGED
@@ -50,7 +50,7 @@ const createServer = () => {
|
|
50 |
const server = http.createServer((req, res) => {
|
51 |
if (req.url === '/') {
|
52 |
res.writeHead(200, {'Content-Type': 'text/plain'});
|
53 |
-
res.end("It
|
54 |
} else {
|
55 |
res.writeHead(404, {'Content-Type': 'text/plain'});
|
56 |
res.end('404 Not Found');
|
|
|
50 |
const server = http.createServer((req, res) => {
|
51 |
if (req.url === '/') {
|
52 |
res.writeHead(200, {'Content-Type': 'text/plain'});
|
53 |
+
res.end("It just works!");
|
54 |
} else {
|
55 |
res.writeHead(404, {'Content-Type': 'text/plain'});
|
56 |
res.end('404 Not Found');
|