You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Javascript conversion crashes during multipart form data #88
In javascript code generation template you are doing deletion of content type header in case of multi part form data. Code crashes saying "Cannot read property 'indexOf' of undefined" if javascript conversion is called twice and if same snippet is converted to other language content header will be missing.
Ex:
var snippet = new HTTPSnippet(data);
console.log(snippet.convert('javascript'));
console.log(snippet.convert('javascript'));
There are no longer any .indexOf calls in any JavaScript target. If someone can reproduce this today (post #248) then please let me know and we'll take a look.
Activity
ahmadnassri commentedon Nov 29, 2016
can you provide an example?
Karthik-M-L commentedon Dec 12, 2016
Any post request with postdata having mimetype multipart formdata will do.
If you want HAR i can give you
dimitropoulos commentedon Jul 19, 2022
There are no longer any
.indexOfcalls in any JavaScript target. If someone can reproduce this today (post #248) then please let me know and we'll take a look.