Commit 86d35469 authored by Ricki Hirner's avatar Ricki Hirner

Disable compression for GET requests because it may change the ETag; better exception formatting

parent de3a570b
Pipeline #4692830 passed with stage
in 4 minutes and 59 seconds
......@@ -143,6 +143,7 @@ public class DavResource {
.get()
.url(location)
.header("Accept", accept)
.header("Accept-Encoding", "identity") // disable compression because it can change the ETag
.build()).execute();
if (response.isRedirect())
processRedirection(response);
......
......@@ -102,7 +102,7 @@ public class HttpException extends Exception implements Serializable {
else if (b >= 0x20 && b <= 0x7E) // printable ASCII
formatted.append((char)b);
else
formatted.append("[" + Integer.toHexString(b) + "]");
formatted.append("[" + Integer.toHexString((int)b & 0xff) + "]");
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment