Просмотр исходного кода

Fix for Chrome in multipart form handling example

fix for lowercase boundary strings, see #137
bel 10 лет назад
Родитель
Сommit
7b1a88e05e
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      test/handle_form.lua

+ 1 - 1
test/handle_form.lua

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