DebugLog.log("HTTP 1.0 connection is detected, chunked encoding should not be used with PUT");
    public DAVStatus doPutDiff(String url, String path, InputStream data) throws SVNException {                Map headers = new HashMap();        headers.put("Content-Type", "application/vnd.svn-svndiff");        if (myIsHTTP10Connection) {            DebugLog.log("HTTP 1.0 connection is detected, chunked encoding should not be used with PUT");            ByteArrayOutputStream bos = new ByteArrayOutputStream();            try {                while(true) {                    int b = data.read();                    if (b < 0) {                        break;                    }                    bos.write(b);                }            } catch (IOException e) {                throw new SVNException(e);            } finally {                try {                    data.close();                } catch (IOException e) {                    //                }            }            data = new ByteArrayInputStream(bos.toByteArray());        }        if (myLocks != null && myLocks.containsKey(url)) {            headers.put("If", "<" + url + "> (<" + myLocks.get(url) + ">)");        }        return myHttpConnection.request("PUT", path, headers, data, null, null);    }