Skip to content

Commit de8377e

Browse files
committed
Updates microprofile test and adds config annotation.
Signed-off-by: Santiago Pericas-Geertsen <[email protected]>
1 parent 4669144 commit de8377e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

microprofile/tests/server/src/test/java/io/helidon/microprofile/tests/server/BadHostHeaderTest.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2021, 2024 Oracle and/or its affiliates.
2+
* Copyright (c) 2021, 2025 Oracle and/or its affiliates.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -19,6 +19,7 @@
1919
import io.helidon.http.Header;
2020
import io.helidon.http.HeaderValues;
2121
import io.helidon.http.Status;
22+
import io.helidon.microprofile.testing.AddConfig;
2223
import io.helidon.microprofile.testing.junit5.AddBean;
2324
import io.helidon.microprofile.testing.junit5.HelidonTest;
2425
import io.helidon.webclient.api.WebClient;
@@ -37,6 +38,7 @@
3738

3839
@HelidonTest
3940
@AddBean(BadHostHeaderTest.TestResource.class)
41+
@AddConfig(key = "server.error-handling.include-entity", value = "true")
4042
public class BadHostHeaderTest {
4143
private static final Header BAD_HOST_HEADER = HeaderValues.create("Host", "localhost:808a");
4244

webserver/webserver/src/main/java/io/helidon/webserver/ListenerConfigBlueprint.java

+1
Original file line numberDiff line numberDiff line change
@@ -405,5 +405,6 @@ default void configureSocket(ServerSocket socket) {
405405
*
406406
* @return optional error handling
407407
*/
408+
@Option.Configured
408409
Optional<ErrorHandling> errorHandling();
409410
}

0 commit comments

Comments
 (0)