jow- / lucihttp Goto Github PK
View Code? Open in Web Editor NEWHTTP utility library with Lua binding
License: MIT License
HTTP utility library with Lua binding
License: MIT License
I also reported this issue to here: openwrt/luci#1784.
After investigating this problem, I found the lua script(http.lua) calls header_attribute to parse header attribute, but never get return, so uhttpd gives the response 'Bad Gateway' to web client.
Below is the call trace I found, can you please help me to fix this problem?
http.lua: parse_message_body
-> lua.c: lhttp.header_attribute
-> ulits.c: lh_header_attribute (hang in this function)
If the textarea has multiple lines and the last line is not a blank line but a single character, the textarea value will not be obtained.
ok
name="cbid.crontab.1.crons"\r\n\r\nA\r\nB\r\n\r\n
curl 'http://192.168.1.1/cgi-bin/luci/admin/system/crontab' \
-H 'Cookie: sysauth=4dc363e1d0a940b9e31931599ad511d4' \
-H 'Content-Type: multipart/form-data; boundary=----WebKitFormBoundary0IAtYXyyDSLQg8kg' \
--data-binary $'------WebKitFormBoundary0IAtYXyyDSLQg8kg\r\nContent-Disposition: form-data; name="cbid.crontab.1.crons"\r\n\r\nA\r\nB\r\n\r\n------WebKitFormBoundary0IAtYXyyDSLQg8kg--\r\n' \
--compressed >/dev/null;
error
name="cbid.crontab.1.crons"\r\n\r\nA\r\nB\r\n
curl 'http://192.168.1.1/cgi-bin/luci/admin/system/crontab' \
-H 'Cookie: sysauth=4dc363e1d0a940b9e31931599ad511d4' \
-H 'Content-Type: multipart/form-data; boundary=----WebKitFormBoundary0IAtYXyyDSLQg8kg' \
--data-binary $'------WebKitFormBoundary0IAtYXyyDSLQg8kg\r\nContent-Disposition: form-data; name="cbid.crontab.1.crons"\r\n\r\nA\r\nB\r\n------WebKitFormBoundary0IAtYXyyDSLQg8kg--\r\n' \
--compressed >/dev/null;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.