Skip to content

Commit

Permalink
Breaking change: Prepend the name of custom HTTP headers with "X-"
Browse files Browse the repository at this point in the history
  • Loading branch information
cundd committed Nov 8, 2019
1 parent c130d7a commit 63e0082
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Http/Header.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ abstract class Header
public const CORS_CREDENTIALS = 'Access-Control-Allow-Credentials';

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

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

0 comments on commit 63e0082

Please sign in to comment.