kopia lustrzana https://github.com/gaul/s3proxy
Remove unneeded UnsupportedEncodingException
rodzic
4e8b57b227
commit
e5fb3619df
|
@ -17,7 +17,6 @@
|
||||||
package org.gaul.s3proxy;
|
package org.gaul.s3proxy;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.UnsupportedEncodingException;
|
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
import java.security.InvalidKeyException;
|
import java.security.InvalidKeyException;
|
||||||
import java.security.MessageDigest;
|
import java.security.MessageDigest;
|
||||||
|
@ -249,8 +248,8 @@ final class AwsSignature {
|
||||||
return headersWithValues.toString();
|
return headersWithValues.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String buildCanonicalQueryString(HttpServletRequest request)
|
private static String buildCanonicalQueryString(
|
||||||
throws UnsupportedEncodingException {
|
HttpServletRequest request) {
|
||||||
// The parameters are required to be sorted
|
// The parameters are required to be sorted
|
||||||
List<String> parameters = Collections.list(request.getParameterNames());
|
List<String> parameters = Collections.list(request.getParameterNames());
|
||||||
Collections.sort(parameters);
|
Collections.sort(parameters);
|
||||||
|
|
Ładowanie…
Reference in New Issue