abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From calav...@apache.org
Subject svn commit: r678555 - in /incubator/abdera/java/trunk/client/src: main/java/org/apache/abdera/protocol/client/util/MultimediaRelatedRequestEntity.java test/java/org/apache/abdera/test/client/util/MultipartRelatedRequestEntityTest.java
Date Mon, 21 Jul 2008 20:42:18 GMT
Author: calavera
Date: Mon Jul 21 13:42:17 2008
New Revision: 678555

URL: http://svn.apache.org/viewvc?rev=678555&view=rev
Log:
boundary header parameter shouldn't start with dashes

Modified:
    incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/util/MultimediaRelatedRequestEntity.java
    incubator/abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/util/MultipartRelatedRequestEntityTest.java

Modified: incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/util/MultimediaRelatedRequestEntity.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/util/MultimediaRelatedRequestEntity.java?rev=678555&r1=678554&r2=678555&view=diff
==============================================================================
--- incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/util/MultimediaRelatedRequestEntity.java
(original)
+++ incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/util/MultimediaRelatedRequestEntity.java
Mon Jul 21 13:42:17 2008
@@ -89,7 +89,7 @@
 	}
 
 	public String getContentType() {		
-		return "Multipart/Related; boundary=\"--" + boundary 
+		return "Multipart/Related; boundary=\"" + boundary 
 			+ "\";type=\"" + MimeTypeHelper.getMimeType(entry) + "\"";
 	}
 

Modified: incubator/abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/util/MultipartRelatedRequestEntityTest.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/util/MultipartRelatedRequestEntityTest.java?rev=678555&r1=678554&r2=678555&view=diff
==============================================================================
--- incubator/abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/util/MultipartRelatedRequestEntityTest.java
(original)
+++ incubator/abdera/java/trunk/client/src/test/java/org/apache/abdera/test/client/util/MultipartRelatedRequestEntityTest.java
Mon Jul 21 13:42:17 2008
@@ -64,9 +64,9 @@
 	
 	@Test
 	public void testMultimediaRelatedContentType() throws Exception {
-		MimeType type = new MimeType("Multipart/Related;boundary=\"--35245352345sdfg\"");
+		MimeType type = new MimeType("Multipart/Related;boundary=\"35245352345sdfg\"");
 		assertTrue(MimeTypeHelper.isMatch("Multipart/Related", type.toString()));
-		assertEquals("--35245352345sdfg", type.getParameter("boundary"));
+		assertEquals("35245352345sdfg", type.getParameter("boundary"));
 	}
 	
 	//@Test



Mime
View raw message