Giter Club home page Giter Club logo

http-server's Introduction

http-server's People

Contributors

avianflu avatar bigbluehat avatar danielmahon avatar fotoverite avatar glls avatar iamfromspace avatar indexzero avatar jfhbrook avatar karolmajta avatar katowulf avatar luk- avatar marak avatar mathieu-aubin avatar mbrowne avatar michaelsbradleyjr avatar michalcz avatar mmalecki avatar peterlcullen avatar pheyvaer avatar pksunkara avatar saadq avatar smileart-levelup avatar sqlwwx avatar stevevanopstal avatar thornjad avatar timoxley avatar tobyee avatar travisperson avatar wmertens avatar zonetti avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

melgi

http-server's Issues

Crash when URL ends with slash and conneg is enabled

When --conneg is enabled, a request URL like mydomain/somefoler/myfile will be served with the correspondent version of myfile according to the accept header (e.g. myfile.html or myfile.ttl).

But if the same request ends with a slash: mydomain/somefolder/myfile/ the application will treat myfile as another folder that doesn't exist, making the application to crash here.

Fix content-type of ecstatic

  • Remove res.setHeader() from conneg code.
  • Add test for curl -v -H 'accept: application/trig,application/ld+json;q=0.9,application/n-quads;q=0.7,text/turtle;q=0.6,application/rdf+xml;q=0.5,application/xml;q=0.5,text/xml;q=0.5,image/svg+xml;q=0.5,application/json;q=0.45,application/n-triples;q=0.3,text/html;q=0.2,application/xhtml+xml;q=0.18,text/n3;q=0.1' http://localhost:8080/#me and N-Quads is returned.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.