Fixed crash on proxy error
This commit is contained in:
@@ -4,6 +4,7 @@ export default {
|
|||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
responseBodyText() {
|
responseBodyText() {
|
||||||
|
if (typeof this.response.body === "string") return this.response.body
|
||||||
return new TextDecoder("utf-8").decode(this.response.body)
|
return new TextDecoder("utf-8").decode(this.response.body)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -12,10 +12,6 @@ export const cancelRunningAxiosRequest = () => {
|
|||||||
|
|
||||||
const axiosWithProxy = async (req, { state }) => {
|
const axiosWithProxy = async (req, { state }) => {
|
||||||
try {
|
try {
|
||||||
console.log({
|
|
||||||
...req,
|
|
||||||
wantsBinary: true,
|
|
||||||
})
|
|
||||||
const { data } = await axios.post(
|
const { data } = await axios.post(
|
||||||
state.postwoman.settings.PROXY_URL || "https://postwoman.apollosoftware.xyz/",
|
state.postwoman.settings.PROXY_URL || "https://postwoman.apollosoftware.xyz/",
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user