Fixed crash on proxy error
This commit is contained in:
parent
cbae718d25
commit
4a1988dd23
2 changed files with 1 additions and 4 deletions
|
|
@ -4,6 +4,7 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
responseBodyText() {
|
||||
if (typeof this.response.body === "string") return this.response.body
|
||||
return new TextDecoder("utf-8").decode(this.response.body)
|
||||
},
|
||||
},
|
||||
|
|
|
|||
|
|
@ -12,10 +12,6 @@ export const cancelRunningAxiosRequest = () => {
|
|||
|
||||
const axiosWithProxy = async (req, { state }) => {
|
||||
try {
|
||||
console.log({
|
||||
...req,
|
||||
wantsBinary: true,
|
||||
})
|
||||
const { data } = await axios.post(
|
||||
state.postwoman.settings.PROXY_URL || "https://postwoman.apollosoftware.xyz/",
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue