Skip to content

Commit 0dec937

Browse files
committed
Handle GZIP rollback error
Change-Id: I130c074bac58f6130c6f863228a7220d061f37e0
1 parent 9478ec8 commit 0dec937

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

config/src/main/java/com/google/firebase/samples/config/Configure.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ private static void rollback(int version) throws IOException {
142142
System.out.println("ETag from server: " + etag);
143143
} else {
144144
System.out.println("Error:");
145-
System.out.println(inputstreamToString(httpURLConnection.getErrorStream()));
145+
InputStream inputStream = new GZIPInputStream(httpURLConnection.getErrorStream());
146+
System.out.println(inputstreamToString(inputStream));
146147
}
147148
}
148149

0 commit comments

Comments
 (0)