changeset 2895:186d0259f5d6

Merge
author alanb
date Fri, 10 Sep 2010 18:50:52 +0100
parents b1f49e54be97 6960b4f07bf9
children c786a9c927fd
files
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/sun/net/www/http/ChunkedInputStream/ChunkedEncodingTest.java	Fri Sep 10 18:48:49 2010 +0100
+++ b/test/sun/net/www/http/ChunkedInputStream/ChunkedEncodingTest.java	Fri Sep 10 18:50:52 2010 +0100
@@ -38,7 +38,7 @@
 
 public class ChunkedEncodingTest{
     private static MessageDigest serverDigest, clientDigest;
-    private static byte[] serverMac, clientMac;
+    private static volatile byte[] serverMac, clientMac;
 
     static void client(String u) throws Exception {
         URL url = new URL(u);
@@ -106,7 +106,7 @@
             while (is.read() != -1);
             is.close();
 
-            t.sendResponseHeaders (200, MESSAGE_LENGTH);
+            t.sendResponseHeaders (200, 0);
             OutputStream os = t.getResponseBody();
             DigestOutputStream dos = new DigestOutputStream(os, serverDigest);