Fixed crash on proxy error

This commit is contained in:
Andrew Bastin
2020-07-20 23:47:22 -04:00
parent cbae718d25
commit 4a1988dd23
2 changed files with 1 additions and 4 deletions

View File

@@ -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)
}, },
}, },

View File

@@ -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/",
{ {