Skip to content

Commit 0575e66

Browse files
makingrstoyanchev
authored andcommitted
Protobuf Codec supports application/vnd.google.protobuf
1 parent ad8775e commit 0575e66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-web/src/main/java/org/springframework/http/codec/protobuf/ProtobufCodecSupport.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ public abstract class ProtobufCodecSupport {
3434
static final List<MimeType> MIME_TYPES = Collections.unmodifiableList(
3535
Arrays.asList(
3636
new MimeType("application", "x-protobuf"),
37-
new MimeType("application", "octet-stream")));
37+
new MimeType("application", "octet-stream"),
38+
new MimeType("application", "vnd.google.protobuf")));
3839

3940
static final String DELIMITED_KEY = "delimited";
4041

0 commit comments

Comments
 (0)