Skip to content

Commit 721cea1

Browse files
committed
Remove experimental calls
1 parent fc60b8c commit 721cea1

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎basic-http/server.js‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,8 @@ const user = {
1212

1313
const server = http.createServer((req, res) => {
1414
res.writeHead(200, { 'Content-Type': 'text/plain' });
15-
res.writeHead(400, { 'Content-Type': 'text/plain' });
16-
res.end('111');
17-
res.end(
18-
`${user.name} said "Java is a crap!" and chiao from ${user.city}`
19-
);
15+
const { name, city } = user;
16+
res.end(`${name} said "Java is a crap!" and ciao from ${city}`);
2017
});
2118

2219
server.on('clientError', (err, socket) => {

0 commit comments

Comments
 (0)