Skip to content

Commit 8b504ab

Browse files
committed
1 parent a2b129f commit 8b504ab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/test-server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ app.use(express.static(path.join(__dirname, 'test-sites')));
1212
app.use(express.json());
1313
app.use(express.urlencoded({ extended: true }));
1414
// Handle all POST requests
15-
app.post('*', (_, res) => {
15+
app.post('{*splat}', (_, res) => {
1616
// Send a success response
1717
res.json({ success: true });
1818
});
1919

2020
// Handle all PUT requests
21-
app.put('*', (req, res) => {
21+
app.put('{*splat}', (req, res) => {
2222
// Special handling for URLs that start with `/amazon-multipart-upload`
2323
if (req.path.startsWith('/amazon-multipart-upload')) {
2424
const etag = `"${Math.round(Math.random() * 10000)}"`;

0 commit comments

Comments
 (0)