kopia lustrzana https://github.com/gaul/s3proxy
Fix Checkstyle violation
rodzic
79f12eff88
commit
899956f80f
|
@ -453,13 +453,12 @@ public class S3ProxyHandler {
|
||||||
dateSkew /= 1000;
|
dateSkew /= 1000;
|
||||||
} catch (IllegalArgumentException iae) {
|
} catch (IllegalArgumentException iae) {
|
||||||
try {
|
try {
|
||||||
dateSkew = parseIso8601(request.getHeader(HttpHeaders.DATE));
|
dateSkew = parseIso8601(request.getHeader(
|
||||||
|
HttpHeaders.DATE));
|
||||||
} catch (IllegalArgumentException iae2) {
|
} catch (IllegalArgumentException iae2) {
|
||||||
throw new S3Exception(S3ErrorCode.ACCESS_DENIED, iae);
|
throw new S3Exception(S3ErrorCode.ACCESS_DENIED, iae);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
haveDate = false;
|
haveDate = false;
|
||||||
}
|
}
|
||||||
|
@ -468,7 +467,6 @@ public class S3ProxyHandler {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
String[] path = uri.split("/", 3);
|
String[] path = uri.split("/", 3);
|
||||||
for (int i = 0; i < path.length; i++) {
|
for (int i = 0; i < path.length; i++) {
|
||||||
path[i] = URLDecoder.decode(path[i], UTF_8);
|
path[i] = URLDecoder.decode(path[i], UTF_8);
|
||||||
|
|
Ładowanie…
Reference in New Issue