forked from spring-projects/spring-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Protobuf support - HTTP headers already written
Prior to this commit, the `ProtobufHttpMessageConverter` would call `outputMessage.getBody()` at the beginning of the `writeInternal` method, thus writing HTTP headers. Since this method is trying to write "x-protobuf" headers after that, protobuf support wasn't working properly for the default "x-protobuf" media type. Thanks Toshiaki Maki for the repro project! Also fixed: * improve `MockHttpOutputMessage` behavior to reproduce the read-only state of HTTP headers once they've been written. Issue: SPR-12229
- Loading branch information
Showing
2 changed files
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters