-
Notifications
You must be signed in to change notification settings - Fork 38.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicated content-type response header on error response #27887
Comments
Here's a more minimal sample that takes Kotlin out of the picture: package com.example.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;
import org.springframework.web.reactive.function.server.RouterFunction;
import org.springframework.web.reactive.function.server.ServerRequest;
import org.springframework.web.reactive.function.server.ServerResponse;
import reactor.core.publisher.Mono;
import static org.springframework.web.reactive.function.server.RouterFunctions.route;
import static org.springframework.web.reactive.function.server.RequestPredicates.GET;
@SpringBootApplication
public class Gh29179Application {
public static void main(String[] args) {
SpringApplication.run(Gh29179Application.class, args);
}
@Configuration
class Config {
@Bean
RouterFunction<ServerResponse> router(Handler handler) {
return route(GET("/"), handler::handle);
}
}
@Component
class Handler {
Mono<ServerResponse> handle(ServerRequest request) {
throw new RuntimeException();
}
}
} The duplicate header remains:
|
This appears to be a regression in Spring Framework 5.3.14. Downgrading to 5.3.13 results in a single |
Combined with istio/istio#30470 this causes clients to receive |
The cause here seems to be in This bug seems to have been in |
version
code
result
The text was updated successfully, but these errors were encountered: