feat: parse application/x-www-form-urlencoded request bodies
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
2 files changed
+16
No files matched your search
@@ -207,6 +207,8 @@ export function createHttpServer(
|
||||
res.end(JSON.stringify({ error: 'Invalid JSON body' }));
|
||||
return;
|
||||
}
|
||||
} else if (raw !== undefined && ct.includes('application/x-www-form-urlencoded')) {
|
||||
body = Object.fromEntries(new URLSearchParams(raw));
|
||||
}
|
||||
let result: PipelineResult;
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user