incubator-wink-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From el...@apache.org
Subject svn commit: r789686 - /incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/ResponseImpl.java
Date Tue, 30 Jun 2009 11:47:55 GMT
Author: elman
Date: Tue Jun 30 11:47:55 2009
New Revision: 789686

URL: http://svn.apache.org/viewvc?rev=789686&view=rev
Log:
https://issues.apache.org/jira/browse/WINK-19

Modified:
    incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/ResponseImpl.java

Modified: incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/ResponseImpl.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/ResponseImpl.java?rev=789686&r1=789685&r2=789686&view=diff
==============================================================================
--- incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/ResponseImpl.java
(original)
+++ incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/ResponseImpl.java
Tue Jun 30 11:47:55 2009
@@ -180,12 +180,12 @@
         public ResponseBuilder variant(Variant variant) {
             if (variant != null) {
                 language(variant.getLanguage());
-                putSingleRemoveNull(HttpHeaders.CONTENT_ENCODING, variant.getEncoding());
+                putSingleRemoveNull(HttpHeaders.ACCEPT_ENCODING, variant.getEncoding());
                 type(variant.getMediaType());
             } else {
 
                 putSingleRemoveNull(HttpHeaders.CONTENT_LANGUAGE, null);
-                putSingleRemoveNull(HttpHeaders.CONTENT_ENCODING, null);
+                putSingleRemoveNull(HttpHeaders.ACCEPT_ENCODING, null);
                 putSingleRemoveNull(HttpHeaders.CONTENT_TYPE, null);
             }
             return this;
@@ -207,7 +207,7 @@
                 medyatype = medyatype || (v.getMediaType() != null);
             }
             StringBuilder sb = new StringBuilder();
-            conditionalAppend(sb, encoding, HttpHeaders.CONTENT_ENCODING);
+            conditionalAppend(sb, encoding, HttpHeaders.ACCEPT_ENCODING);
             conditionalAppend(sb, lang, HttpHeaders.ACCEPT_LANGUAGE);
             conditionalAppend(sb, medyatype, HttpHeaders.CONTENT_TYPE);
             putSingleRemoveNull(HttpHeaders.VARY, sb.toString());



Mime
View raw message