Polishing previous commit

Resolves #831
This commit is contained in:
Oleg Zhurakousky
2022-03-21 14:43:39 +01:00
parent d8e20e57af
commit f2fe3230f6

View File

@@ -53,6 +53,7 @@ import static org.apache.http.HttpHeaders.USER_AGENT;
*
* @author Oleg Zhurakousky
* @author Mark Sailes
* @author Rahul Lokurte
* @since 3.1.1
*
*/
@@ -204,7 +205,7 @@ public final class CustomRuntimeEventLoop implements SmartLifecycle {
if (function == null) {
logger.info("Could not determine DEFAULT_HANDLER, _HANDLER or 'spring.cloud.function.definition'");
handlerName = httpHeaders.get("spring.cloud.function.definition");
handlerName = httpHeaders.getFirst("spring.cloud.function.definition");
if (logger.isDebugEnabled()) {
logger.debug("Value of 'spring.cloud.function.definition' header: " + handlerName);
}