The solution includes the line
res.writeHead(200, {'content-type': 'text/plain'})
Neither the instructions nor the hints indicate the student should write this. Verification also doesn't test for this so it passes without.
Either:
- the solution should not have this line; or
- The instructions should make it necessary, the hints should mention writeHead, and verification should check the status code and headers
I err on the side of removing the line because this exercise isn't teaching HTTP.
The solution includes the line
Neither the instructions nor the hints indicate the student should write this. Verification also doesn't test for this so it passes without.
Either:
I err on the side of removing the line because this exercise isn't teaching HTTP.