Git Product home page Git Product logo

Comments (4)

nemasu avatar nemasu commented on May 17, 2024

Hello, there is no HEAD support, I suppose it should respond as such, but it's currently not implemented to do so.

HEAD may appear to currently work, but it's just sending a regular response along with the content, curl just doesn't show it, but if you pass the -v option, it will mention an excess found at the end (i.e. the content).

from asmttpd.

triforce avatar triforce commented on May 17, 2024

This needs to be reopened as an invalid length is being returned from a HEAD request.

from asmttpd.

nemasu avatar nemasu commented on May 17, 2024

I think it should return a 405 error, or the feature be implemented.

from asmttpd.

triforce avatar triforce commented on May 17, 2024

It should return a 200 response but without a message body, but obviously the content length needs to be calculated correctly.

After some testing this only happens when requesting a directory root (i.e no file is specified) and it should respond with the length of the default index file.

Line 237 in main.asm.

"cmp r9, 0x06 ;TODO why exactly is this 6?"

The 0x06 looks to be the offset of the root file request. However when it is a HEAD request this is obviously one offset byte longer than a GET.

from asmttpd.

Related Issues (20)

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.