mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-09-21 12:44:05 +08:00
fix: prevent overwrite of content type (#1703)
Co-authored-by: Liyas Thomas <liyascthomas@gmail.com>
This commit is contained in:
co-authored by
Liyas Thomas
parent
c3f713c0bd
commit
7e9ae69f38
@@ -107,6 +107,9 @@ export default {
|
||||
text() {
|
||||
this.$emit("input", this.text)
|
||||
},
|
||||
value(newValue) {
|
||||
this.text = newValue
|
||||
}
|
||||
},
|
||||
|
||||
mounted() {
|
||||
|
||||
+2
-2
@@ -818,8 +818,8 @@ export default {
|
||||
},
|
||||
method() {
|
||||
this.contentType = ["POST", "PUT", "PATCH", "DELETE"].includes(this.method)
|
||||
? "application/json"
|
||||
: ""
|
||||
? this.contentType
|
||||
: "application/json"
|
||||
},
|
||||
preRequestScript(val, oldVal) {
|
||||
this.uri = this.uri
|
||||
|
||||
Reference in New Issue
Block a user