Giter VIP home page Giter VIP logo

Comments (2)

abonander avatar abonander commented on May 29, 2024

I was in the middle of implementing support for this crate in multipart when I noticed the header parsing code is incomplete. It will ignore the boundary param in the Content-Type header, as it's only expecting q={float}:

Content-Type: multipart/form-data; boundary=asdf1234

I'm not sure what the story is on headers for this crate as it looks like it's wanting to move to strongly typed headers, but getting the boundary is necessary for multipart request body parsing to work.

from tiny-http.

tomaka avatar tomaka commented on May 29, 2024

Moving to strongly typed headers is just a suggestion. Nothing has been done to move towards this.
This issue is very old, and is probably irrelevant today as multipart stuff should be handled by a library on top of tiny-http. In fact I'm going to close it.

If I remember correctly the headers that are returned by get_headers are "raw", without any parsing.
There is a function that parses content-type-like headers, but it is only used to choose which transfer encoding to use in the response and is not supposed to be part of tiny-http's API.

from tiny-http.

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.