Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp committed Sep 20, 2023
1 parent 2426010 commit f8886bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const first = defineMiddleware(async (context, next) => {
const /** @type {string} */ html = await newResponse.text();
const newhtml = html.replace('<h1>testing</h1>', '<h1>it works</h1>');
return new Response(newhtml, { status: 200, headers: response.headers });
} else if(context.url.pathname = '/return-response-cookies') {
} else if(context.url.pathname === '/return-response-cookies') {
const response = await next();
const html = await response.text();

Expand Down

0 comments on commit f8886bc

Please sign in to comment.