Skip to content

Commit 63e0082

Browse files
committed
Breaking change: Prepend the name of custom HTTP headers with "X-"
1 parent c130d7a commit 63e0082

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Classes/Http/Header.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ abstract class Header
2121
public const CORS_CREDENTIALS = 'Access-Control-Allow-Credentials';
2222

2323
// This header will be sent if the response has been cached by the REST extension
24-
public const CUNDD_REST_CACHED = 'Cundd-Rest-Cached';
24+
public const CUNDD_REST_CACHED = 'X-Cundd-Rest-Cached';
2525

2626
// This header can be set to prevent the REST extension from caching a response
27-
public const CUNDD_REST_NO_CACHE = 'Cundd-Rest-No-Cache';
27+
public const CUNDD_REST_NO_CACHE = 'X-Cundd-Rest-No-Cache';
2828
}

0 commit comments

Comments
 (0)