Skip to content

-e and --ext parameters are not respected #99

@scobo

Description

@scobo

Steps to reproduce:

  1. .public/index.xhtml is a simple “Hello, World!” XHTML5 document.
  2. http-server ./public -e xhtml

Expected response:

  1. Open http://localhost:8080/ in a browser.
  2. See the index.xhtml document.

Actual response:

  1. Open http://localhost:8080/ in a browser.
  2. See a directory index with a link to index.xhtml.
  3. Click the index.html link to see the index.xhtml document.

The latest version of node-ecstatic (0.5.5) includes a fix for this issue. Updating the dependency should resolve the issue here.

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