lua-stringy icon indicating copy to clipboard operation
lua-stringy copied to clipboard

Weird behaviour with http request

Open SWSAmor opened this issue 9 years ago • 0 comments

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.

SWSAmor avatar Apr 12 '16 07:04 SWSAmor