Replace X-API-Version with API-Version

Closes gh-35494
This commit is contained in:
rstoyanchev
2025-09-17 11:48:49 +01:00
parent 88812edc35
commit c7121d048c
13 changed files with 29 additions and 29 deletions
@@ -40,7 +40,7 @@ public class ApiVersionTests {
@Test
void header() {
String header = "X-API-Version";
String header = "API-Version";
Map<String, String> result = performRequest(
configurer -> configurer.useRequestHeader(header),
@@ -92,7 +92,7 @@ public class ApiVersionTests {
@RestController
static class TestController {
private static final String HEADER = "X-API-Version";
private static final String HEADER = "API-Version";
@GetMapping(path = "/**", version = "1.2")
Map<String, String> handle(ServerHttpRequest request) {
@@ -44,7 +44,7 @@ public class ApiVersionTests {
@Test
void header() {
String header = "X-API-Version";
String header = "API-Version";
Map<String, String> result = performRequest(
request -> request.getHeader(header), ApiVersionInserter.useHeader(header));
@@ -96,7 +96,7 @@ public class ApiVersionTests {
@RestController
private static class TestController {
private static final String HEADER = "X-API-Version";
private static final String HEADER = "API-Version";
@GetMapping(path = "/**", version = "1.2")
Map<String, String> handle(HttpServletRequest request) {