Redirect to https://zxing.org directly, and touch up a build warning

This commit is contained in:
Sean Owen 2016-06-20 09:13:21 +01:00
parent cf59354cde
commit 5927f6ef09
4 changed files with 5 additions and 4 deletions

View file

@ -49,6 +49,7 @@
<plugin>
<groupId>com.github.wvengen</groupId>
<artifactId>proguard-maven-plugin</artifactId>
<version>${proguard.plugin.version}</version>
<configuration>
<options combine.children="append">
<option>-optimizations !code/simplification/cast,!code/allocation/variable,!field/*,!class/*,!method/*</option>

View file

@ -96,6 +96,7 @@
<java.version>1.7</java.version>
<maven.version.min>3.2.1</maven.version.min>
<proguard.version>5.2.1</proguard.version>
<proguard.plugin.version>2.0.13</proguard.plugin.version>
<slf4j.version>1.7.21</slf4j.version>
<!-- This can't reference project.version as some subprojects version differently -->
<zxing.version>3.2.2-SNAPSHOT</zxing.version>
@ -389,7 +390,7 @@
<plugin>
<groupId>com.github.wvengen</groupId>
<artifactId>proguard-maven-plugin</artifactId>
<version>2.0.13</version>
<version>${proguard.plugin.version}</version>
<executions>
<execution>
<phase>package</phase>

View file

@ -279,8 +279,7 @@ public final class DecodeServlet extends HttpServlet {
log.info("File upload was not multipart");
errorResponse(request, response, "badimage");
} else {
log.info("Decoding uploaded file " + fileUploadPart.getName() + " " +
fileUploadPart.getSubmittedFileName());
log.info("Decoding uploaded file " + fileUploadPart.getSubmittedFileName());
try (InputStream is = fileUploadPart.getInputStream()) {
processStream(is, request, response);
}

View file

@ -62,7 +62,7 @@ public final class RedirectFilter implements Filter {
redirect(servletResponse, "/w/decode.jspx");
} else if (requestURI.startsWith(OLD_JAVADOC_PREFIX)) {
String withoutPrefix = requestURI.substring(OLD_JAVADOC_PREFIX.length());
redirect(servletResponse, "http://zxing.github.io/zxing/apidocs" + withoutPrefix);
redirect(servletResponse, "https://zxing.github.io/zxing/apidocs" + withoutPrefix);
} else {
filterChain.doFilter(servletRequest, servletResponse);
}