diff --git a/http/http-minimum-reactive/src/test/java/io/quarkus/ts/http/minimum/reactive/HttpCustomHeadersIT.java b/http/http-minimum-reactive/src/test/java/io/quarkus/ts/http/minimum/reactive/HttpCustomHeadersIT.java new file mode 100644 index 000000000..4a84fd457 --- /dev/null +++ b/http/http-minimum-reactive/src/test/java/io/quarkus/ts/http/minimum/reactive/HttpCustomHeadersIT.java @@ -0,0 +1,25 @@ +package io.quarkus.ts.http.minimum.reactive; + +import static io.restassured.RestAssured.given; +import static org.hamcrest.CoreMatchers.is; + +import org.apache.http.HttpStatus; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import io.quarkus.test.scenarios.QuarkusScenario; + +@Tag("QUARKUS-1574") +@QuarkusScenario +public class HttpCustomHeadersIT { + + @Test + public void caseInsensitiveAcceptHeader() { + given() + .accept("Application/json") + .get("/api/hello") + .then() + .statusCode(HttpStatus.SC_OK) + .body("content", is("Hello, World!")); + } +} diff --git a/http/http-minimum/src/test/java/io/quarkus/ts/http/minimum/HttpCustomHeadersIT.java b/http/http-minimum/src/test/java/io/quarkus/ts/http/minimum/HttpCustomHeadersIT.java new file mode 100644 index 000000000..6feb1c4f4 --- /dev/null +++ b/http/http-minimum/src/test/java/io/quarkus/ts/http/minimum/HttpCustomHeadersIT.java @@ -0,0 +1,25 @@ +package io.quarkus.ts.http.minimum; + +import static io.restassured.RestAssured.given; +import static org.hamcrest.CoreMatchers.is; + +import org.apache.http.HttpStatus; +import org.junit.jupiter.api.Tag; +import org.junit.jupiter.api.Test; + +import io.quarkus.test.scenarios.QuarkusScenario; + +@Tag("QUARKUS-1574") +@QuarkusScenario +public class HttpCustomHeadersIT { + + @Test + public void caseInsensitiveAcceptHeader() { + given() + .accept("Application/json") + .get("/api/hello") + .then() + .statusCode(HttpStatus.SC_OK) + .body("content", is("Hello, World!")); + } +}