Skip to content

Commit

Permalink
fix(ui): fix manual import
Browse files Browse the repository at this point in the history
  • Loading branch information
sentriz committed Dec 7, 2023
1 parent 0bfa2b2 commit 05a5584
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions betanin_client/src/backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const baseAxios = {
}

const insecureAxios = axios.create(baseAxios)

const secureAxios = axios.create(baseAxios)
secureAxios.interceptors.request.use((config) => {
config.headers['Authorization'] = `Bearer ${authUtils.getToken()}`
Expand Down
2 changes: 1 addition & 1 deletion betanin_client/src/components/ManualImport.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default {
const formData = new FormData()
formData.append('both', this.selection)
try {
await backend.secureAxios.post(fetchUrl, formData)
await backend.secureAxios.post(fetchUrl, formData, { headers: { 'Content-Type': '' } })
} catch (error) {
Toast.open({
message: `error importing: ${error.response.data.message}`,
Expand Down

0 comments on commit 05a5584

Please sign in to comment.