webmcp
diff libraries/rocketcgi/rocketcgi.lua @ 11:d76a8857ba62
Added ui.partial and other functions, which allow partial content replacement using XMLHttpRequests; Image support for ui.link
Also includes following changes:
- Fix for rocketcgi library to accept POST data content-types, which contain additional charset information.
- Support arrays passed as params to encode.url (only for keys ending with "[]")
- Version information changed to "1.0.7"
Documentation for added functions is not yet complete.
Also includes following changes:
- Fix for rocketcgi library to accept POST data content-types, which contain additional charset information.
- Support arrays passed as params to encode.url (only for keys ending with "[]")
- Version information changed to "1.0.7"
Documentation for added functions is not yet complete.
author | jbe/bsw |
---|---|
date | Fri Feb 12 18:40:22 2010 +0100 (2010-02-12) |
parents | 72860d232f32 |
children | 944642a3e488 |
line diff
1.1 --- a/libraries/rocketcgi/rocketcgi.lua Wed Feb 03 00:57:18 2010 +0100 1.2 +++ b/libraries/rocketcgi/rocketcgi.lua Fri Feb 12 18:40:22 2010 +0100 1.3 @@ -134,7 +134,10 @@ 1.4 end 1.5 end 1.6 1.7 -if post_contenttype == "application/x-www-form-urlencoded" then 1.8 +if post_contenttype and ( 1.9 + post_contenttype == "application/x-www-form-urlencoded" or 1.10 + string.match(post_contenttype, "^application/x%-www%-form%-urlencoded[ ;]") 1.11 +) then 1.12 read_urlencoded_form(post_params, post_data) 1.13 elseif post_contenttype then 1.14 local boundary = string.match(