Skip to content

Commit

Permalink
hopefully fix fileupload?
Browse files Browse the repository at this point in the history
  • Loading branch information
velis74 committed Dec 20, 2024
1 parent 236a574 commit 5f952b6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"export-pdf": "press-export-pdf --debug export docs"
},
"peerDependencies": {
"@velis/dynamicforms": "^0.77.1",
"@velis/dynamicforms": "^0.77.9",
"axios": "^1.2.0",
"lodash": "^4.17.15",
"pinia": "^2.0.33",
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
django
djangorestframework
dynamicforms>=0.77.1
dynamicforms>=0.77.9
swapper
django-rest-registration
drf-spectacular>=0.17.2, <0.26.0
Expand Down
3 changes: 2 additions & 1 deletion vue/api-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ apiClient.interceptors.request.use(
if (_.includes(Store.get('ignored-apis') || [], config.url)) {
new AbortController().abort('app-canceled-err');
}
config.headers['Content-Type'] = 'application/json';
console.log(`ApiClient Content-Type = ${config.headers['Content-Type']}`);
// config.headers['Content-Type'] = 'application/json';
if (currentProject && currentProject.length) {
config.headers['Current-Project'] = currentProject;
}
Expand Down

0 comments on commit 5f952b6

Please sign in to comment.