http-server icon indicating copy to clipboard operation
http-server copied to clipboard

robots.txt flag is not working

Open johannesparty opened this issue 2 years ago • 1 comments

passing "-r true" or "--robots true" on command line. possible reasons:

  • http-server.js, near line 113, there is "options.robots === true", but in fact the value is a string, so === is not right.
  • if true, looks like returns "user-agent:" string as body, but shouldn't it call reset.setHeader or something?

johannesparty avatar Aug 07 '22 00:08 johannesparty

This issue has been inactive for 180 days

github-actions[bot] avatar Feb 03 '23 12:02 github-actions[bot]