lua-stringy
lua-stringy copied to clipboard
Weird behaviour with http request
Could you help me? I want to use your stringy lib, but i don’t understand something. Here is a v string:
["header",["Content-Disposition","form-data; name="fileToUpload"; filename="Furi.docx"","Content-Disposition: form-data; name="fileToUpload"; filename="Furi.docx""]]
I want to strip filename, but for this expression:
stringy.split (v, "filename")[2]
i got
orm-data; name="
but i thought i need to get this:
="Furi.docx"","Content-Disposition: form-data; name="fileToUpload"; filename="Furi.docx""]]
What did/thought i wrong?
Thanks.