mirror of
https://github.com/lammertb/libhttp.git
synced 2026-01-03 16:02:30 +03:00
Fix for Chrome in multipart form handling example
fix for lowercase boundary strings, see #137
This commit is contained in:
@@ -37,7 +37,7 @@ bdata = table.concat(stringtab)
|
||||
stringtab = nil
|
||||
|
||||
-- Get the boundary string.
|
||||
bs = "--" .. ((mg.request_info.content_type):upper():match("BOUNDARY=(.*)"));
|
||||
bs = "--" .. ((mg.request_info.content_type):match("boundary=(.*)"));
|
||||
|
||||
-- The POST data has to start with the boundary string.
|
||||
-- Check this and remove the starting boundary.
|
||||
|
||||
Reference in New Issue
Block a user