Comments (1)
Yep, that's definitely a bug. A quick check of the length at line 163 should fix that. A similar check needs to be made on line 165.
Line 163
if ("content-type" in req.headers && req.headers["content-type"].slice(0,20) == "multipart/form-data;") {
Line 165
local boundary = req.headers["content-type"].slice(30);
from rocky.
Related Issues (19)
- Access control, allow methods HOT 1
- Access control, expose headers HOT 3
- Access control, automatic acceptance of preflight check HOT 1
- Wildcard support for path signatures HOT 3
- Rocky doesn't always detect proper content-type
- Middleware call count increased by one for every incoming request? HOT 2
- Route-level timeout HOT 4
- Parsing error when requests use default content type header. HOT 8
- Errors in .on/verb callbacks stops code execution, but don't throw errors HOT 2
- Rocky.Context.sendToAll sends a response not to all open requests
- Context.req.body has the wrong body type with content-type="multipart/form-data"
- Error occurs when invalid timeout parameter passed into Rocky.on(verb, signature, callback[, timeout]) HOT 2
- Error occurred when initializing Rocky with invalid timeout parameter HOT 1
- Unhandled exceptions in handlers HOT 1
- Support for cookies
- Rocky should be a Singleton! HOT 4
- Rocky signatures are not case sensitive HOT 1
- Typo: "Timedout" should be "Timed Out" HOT 1
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 rocky.