Open ghost23 opened 4 months ago
I am doing this request:
import formurlencoded from 'form-urlencoded'; // ... const response = await myAxios.request<UserResponse>({ method: 'post', url: 'login', data: formurlencoded(user), headers: { 'Content-Type': 'application/x-www-form-urlencoded' } });
If I am doing this without your adapter the browser sends a request with a form paylod.
If I am using your adapter, the Content-Type ist changed to: "application/xml;charset=UTF-8" and the data is send as request parameters.
Hi @ghost23. Thanks for reporting this issue. PRs are welcome.
I am doing this request:
If I am doing this without your adapter the browser sends a request with a form paylod.
If I am using your adapter, the Content-Type ist changed to: "application/xml;charset=UTF-8" and the data is send as request parameters.