fix: add query from cURL import - fixed #1582

This commit is contained in:
Liyas Thomas
2021-04-08 11:31:24 +00:00
committed by GitHub
parent 516d53f9bf
commit db45f08905

View File

@@ -1681,6 +1681,16 @@ export default {
this.path = pathname
this.uri = this.url + this.path
this.headers = []
if (parsedCurl.query) {
for (const key of Object.keys(parsedCurl.query)) {
this.$store.commit("addParams", {
key,
value: parsedCurl.query[key],
type: "query",
active: true,
})
}
}
if (parsedCurl.headers) {
for (const key of Object.keys(parsedCurl.headers)) {
this.$store.commit("addHeaders", {