Removed content type header from request
This commit is contained in:
1 parent
d20ec58b0e
commit
bd5ed007eb
1 file changed
+1
-4
@@ -85,10 +85,7 @@ export const deleteUser = createAsyncThunk(
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const res = await axiosInstance.delete(`/auth/user/${user._id}`, {
|
const res = await axiosInstance.delete(`/auth/user/${user._id}`, {
|
||||||
headers: {
|
headers: { Authorization: `Bearer ${data}` },
|
||||||
Authorization: `Bearer ${data}`,
|
|
||||||
"Content-Type": "multipart/form-data",
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
return res.data;
|
return res.data;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in new issue
Block a user