abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r575157 - in /incubator/abdera/java/trunk: core/src/main/resources/abderamessages.properties server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractRequestHandler.java
Date Thu, 13 Sep 2007 04:01:43 GMT
Author: jmsnell
Date: Wed Sep 12 21:01:42 2007
New Revision: 575157

URL: http://svn.apache.org/viewvc?rev=575157&view=rev
Log:
Send Error bug as reported by Chris Berry on the user list

Modified:
    incubator/abdera/java/trunk/core/src/main/resources/abderamessages.properties
    incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractRequestHandler.java

Modified: incubator/abdera/java/trunk/core/src/main/resources/abderamessages.properties
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/core/src/main/resources/abderamessages.properties?rev=575157&r1=575156&r2=575157&view=diff
==============================================================================
--- incubator/abdera/java/trunk/core/src/main/resources/abderamessages.properties (original)
+++ incubator/abdera/java/trunk/core/src/main/resources/abderamessages.properties Wed Sep
12 21:01:42 2007
@@ -21,6 +21,7 @@
 UNAUTHORIZED=Unauthorized
 FORBIDDEN=Forbidden
 UNKNOWN=Unknown
+NOT.FOUND=Not Found
 NOT.ALLOWED=Not Allowed
 BAD.REQUEST=Bad Request
 CONFLICT=Conflict

Modified: incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractRequestHandler.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractRequestHandler.java?rev=575157&r1=575156&r2=575157&view=diff
==============================================================================
--- incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractRequestHandler.java
(original)
+++ incubator/abdera/java/trunk/server/src/main/java/org/apache/abdera/protocol/server/impl/AbstractRequestHandler.java
Wed Sep 12 21:01:42 2007
@@ -153,9 +153,9 @@
     IOException {
     response.setStatus(code);
     OutputStream out = response.getOutputStream();
-    OutputStreamWriter writer = new OutputStreamWriter(out, request.getAcceptCharset());
+    OutputStreamWriter writer = new OutputStreamWriter(out, "UTF-8");
     // TODO: should we wrap this in some nice HTML?
-    writer.write(message);
+    writer.write(message != null ? message : "");
     writer.close();
     out.close();
   }



Mime
View raw message