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 {
|
||||
const res = await axiosInstance.delete(`/auth/user/${user._id}`, {
|
||||
headers: {
|
||||
Authorization: `Bearer ${data}`,
|
||||
"Content-Type": "multipart/form-data",
|
||||
},
|
||||
headers: { Authorization: `Bearer ${data}` },
|
||||
});
|
||||
return res.data;
|
||||
} catch (error) {
|
||||
|
||||
Reference in new issue
Block a user