1
0
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:
bel
2015-05-28 22:07:13 +02:00
parent 012de2fe45
commit 7b1a88e05e

View File

@@ -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.