-
-
Notifications
You must be signed in to change notification settings - Fork 11.6k
FormData request header doesn't include boundary #4631
Copy link
Copy link
Closed
Description
Describe the bug
Boundary is included in payload, but it's missing in Content-Type header - it's just multipart/form-data.
To Reproduce
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Axios issue with form-data</title>
<script src="https://unpkg.com/axios@0.27.1/dist/axios.min.js"></script>
</head>
<body>
<script>
(async () => {
await axios.postForm('http://localhost:8080/', { a: 'b' });
})();
</script>
</body>
</html>Expected behavior
Content-Type header should have a boundary.
Environment
- Axios Version [0.27.0/0.27.1]
- Adapter [n/a]
- Browser [Chrome]
- Browser Version [100.0.4896.127]
- Node.js Version [n/a]
- OS: [MacOS 12.3.1]
- Additional Library Versions [n/a]
Additional context/Screenshots
n/a
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

