Skip to content

Commit 38e58ba

Browse files
Use without pretty permalink
1 parent d61c83d commit 38e58ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/integration/compression.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ test.describe('compression', () => {
476476

477477
const blob = new Blob([new Uint8Array(params.file)], { type: 'image/jpeg' });
478478

479-
const mediaResponse = await fetch(`${params.baseURL}/wp-json/wp/v2/media`, {
479+
const mediaResponse = await fetch(`${params.baseURL}?rest_route=/wp/v2/media`, {
480480
method: 'POST',
481481
headers: {
482482
'X-WP-Nonce': nonce,

0 commit comments

Comments
 (0)