added functionality to import data from curl post request

This commit is contained in:
Nityananda Gohain
2019-09-13 11:42:20 +05:30
parent a7b70cc947
commit aef118880a

View File

@@ -864,8 +864,6 @@
this.url = parsedCurl.url.replace(/"/g,"").replace(/'/g,"");
this.url = this.url[this.url.length -1] == '/' ? this.url.slice(0, -1): this.url;
this.path = "";
this.headers
this.showModal = false;
this.headers = [];
for (const key of Object.keys(parsedCurl.headers)) {
this.headers.push({
@@ -874,6 +872,11 @@
})
}
this.method = parsedCurl.method.toUpperCase();
if (parsedCurl["data"]){
this.rawInput = true;
this.rawParams = parsedCurl["data"];
}
this.showModal = false;
} catch (error) {
this.showModal = false;
}