fix: fix parsing issue

This commit is contained in:
Morten Olsen
2025-05-18 21:11:41 +02:00
parent 68f5025527
commit 5d485acc97
3 changed files with 11 additions and 3 deletions

View File

@@ -33,7 +33,8 @@ const httpHandler: ExecutionHandler = ({
const content = template(context);
const [head, body] = content.split('\n\n');
const [top, ...headerItems] = head.split('\n');
const [method, url] = top.split(' ');
const [method, ...urlParts] = top.split(' ');
const url = urlParts.join(' ').trim();
const headers = Object.fromEntries(
headerItems.map((header) => {