You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to pass quarkus.http.header."Cache-Control".value=no-cache as a environmental variable to my Quarkus Server by setting QUARKUS_HTTP_HEADER__CACHE_CONTROL__VALUE as the variable name.
Expected behavior
Expected server response
...
Cache-Control: no-cache
...
Actual behavior
Actual server response
...
Cache.control: no-cache
...
How to Reproduce?
Make a quarkus HTTP Server and try to set the described header as an environmental variable. Then curl the server.
Output of uname -a or ver
No response
Output of java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of mvnw --version or gradlew --version)
Does QUARKUS_HTTP_HEADER_CACHE_CONTROL_VALUE work?
It doesn't work.
QUARKUS_HTTP_HEADER__CACHE_CONTROL__VALUE is correct. I think that the environment variable name does not contain enough information to convert _ in . or -.
In this case, when you only have an environment variable like quarkus.http.header."Cache-Control".value=no-cache and the Cache-Control portion is a key, we don't know if CACHE_CONTROL needs to be converted to cache.control or cache-control. The default is always to use the ..
To convert this property properly, we need additional information. Just add the property name in one of the lower ordinal sources in the format quarkus.http.header."Cache-Control".value=no-cache. This will let us know the correct way to map the environment variable name.
Describe the bug
I tried to pass
quarkus.http.header."Cache-Control".value=no-cache
as a environmental variable to my Quarkus Server by settingQUARKUS_HTTP_HEADER__CACHE_CONTROL__VALUE
as the variable name.Expected behavior
Expected server response
Actual behavior
Actual server response
How to Reproduce?
Make a quarkus HTTP Server and try to set the described header as an environmental variable. Then
curl
the server.Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537)
Additional information
No response
The text was updated successfully, but these errors were encountered: