Comments (2)
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.
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)
- Consider implementing Hash for Method HOT 1
- Panic when out of file descriptors HOT 7
- Maintenance Status HOT 5
- If could if why if is if could if server if could if unreachable if inside if of if codeblock? HOT 1
- Pushes to master are gated on Travis CI step HOT 1
- why four times thread are getting created for a single server? HOT 4
- Sending response before request is fully read HOT 1
- Add a feature or option to turn off the `Server: tiny-http (Rust)` header HOT 4
- tiny_http::Server::https (segmentation fault) HOT 1
- Continue serving requests after failing to spawn a thread HOT 3
- Use bounded thread pool HOT 10
- SSL configuration doesn't support certificate chains HOT 2
- Wrong dependency version of `log` (fails after `cargo update -Z minimal-versions`) HOT 1
- Custom transports
- feat(num_connections) : request HOT 1
- reqwest.get from main thread to tiny-http server in other thread HOT 16
- Why not use eprintln?
- How to setup a proxy?
- Rework HTTP response logic to avoid allocation
- Use rust-native-tls instead of openssl directly HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tiny-http.