Skip to content

HTTP FILE SERVER solution contains unnecessary/unexplained line #348

@piannaf

Description

@piannaf

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:

  1. the solution should not have this line; or
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions