This is an automated email from the ASF dual-hosted git repository.

sergeyb pushed a commit to branch 3.1.x-fixes
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/3.1.x-fixes by this push:
     new b90b5a7  Adding application/pdf to the default binary types
b90b5a7 is described below

commit b90b5a74e0ddd0f56b16d7942461a06c14864626
Author: Sergey Beryozkin <[email protected]>
AuthorDate: Thu Dec 28 16:26:20 2017 +0000

    Adding application/pdf to the default binary types
---
 .../main/java/org/apache/cxf/interceptor/AbstractLoggingInterceptor.java | 1 +
 .../java/org/apache/cxf/ext/logging/event/DefaultLogEventMapper.java     | 1 +
 2 files changed, 2 insertions(+)

diff --git 
a/core/src/main/java/org/apache/cxf/interceptor/AbstractLoggingInterceptor.java 
b/core/src/main/java/org/apache/cxf/interceptor/AbstractLoggingInterceptor.java
index 6f1c363..5e90ea3 100644
--- 
a/core/src/main/java/org/apache/cxf/interceptor/AbstractLoggingInterceptor.java
+++ 
b/core/src/main/java/org/apache/cxf/interceptor/AbstractLoggingInterceptor.java
@@ -62,6 +62,7 @@ public abstract class AbstractLoggingInterceptor extends 
AbstractPhaseIntercepto
     static {
         BINARY_CONTENT_MEDIA_TYPES = new ArrayList<String>();
         BINARY_CONTENT_MEDIA_TYPES.add("application/octet-stream");
+        BINARY_CONTENT_MEDIA_TYPES.add("application/pdf");
         BINARY_CONTENT_MEDIA_TYPES.add("image/png");
         BINARY_CONTENT_MEDIA_TYPES.add("image/jpeg");
         BINARY_CONTENT_MEDIA_TYPES.add("image/gif");
diff --git 
a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/DefaultLogEventMapper.java
 
b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/DefaultLogEventMapper.java
index 0934c2c..5a73c5a 100644
--- 
a/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/DefaultLogEventMapper.java
+++ 
b/rt/features/logging/src/main/java/org/apache/cxf/ext/logging/event/DefaultLogEventMapper.java
@@ -50,6 +50,7 @@ public class DefaultLogEventMapper {
     static {
         BINARY_CONTENT_MEDIA_TYPES = new HashSet<String>();
         BINARY_CONTENT_MEDIA_TYPES.add("application/octet-stream");
+        BINARY_CONTENT_MEDIA_TYPES.add("application/pdf");
         BINARY_CONTENT_MEDIA_TYPES.add("image/png");
         BINARY_CONTENT_MEDIA_TYPES.add("image/jpeg");
         BINARY_CONTENT_MEDIA_TYPES.add("image/gif");

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to