mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Change HTML redirects to HTTP
This commit is contained in:
parent
012662fa3c
commit
fa5d7e6b0d
|
@ -82,7 +82,7 @@ import javax.servlet.http.Part;
|
||||||
maxFileSize = 10_000_000,
|
maxFileSize = 10_000_000,
|
||||||
maxRequestSize = 10_000_000,
|
maxRequestSize = 10_000_000,
|
||||||
fileSizeThreshold = 1_000_000,
|
fileSizeThreshold = 1_000_000,
|
||||||
location = "/tmp")
|
location = "/tmp/DecodeServlet")
|
||||||
@WebServlet("/w/decode")
|
@WebServlet("/w/decode")
|
||||||
public final class DecodeServlet extends HttpServlet {
|
public final class DecodeServlet extends HttpServlet {
|
||||||
|
|
||||||
|
|
|
@ -16,16 +16,9 @@
|
||||||
-->
|
-->
|
||||||
<!-- Author: Sean Owen -->
|
<!-- Author: Sean Owen -->
|
||||||
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1">
|
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1">
|
||||||
<jsp:directive.page contentType="text/html" session="false"/>
|
<jsp:directive.page session="false"/>
|
||||||
<jsp:scriptlet>response.setHeader("Cache-Control", "public");</jsp:scriptlet>
|
<jsp:scriptlet>
|
||||||
<jsp:text><![CDATA[<!DOCTYPE html>]]></jsp:text>
|
response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
|
||||||
<html>
|
response.setHeader("Location", "w/decode.jspx");
|
||||||
<head>
|
</jsp:scriptlet>
|
||||||
<title>Redirect</title>
|
|
||||||
<meta charset="UTF-8"/>
|
|
||||||
<meta http-equiv="Refresh" content="0;url=w/decode.jspx"/>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
</jsp:root>
|
</jsp:root>
|
||||||
|
|
|
@ -16,16 +16,9 @@
|
||||||
-->
|
-->
|
||||||
<!-- Author: Sean Owen -->
|
<!-- Author: Sean Owen -->
|
||||||
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1">
|
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1">
|
||||||
<jsp:directive.page contentType="text/html" session="false"/>
|
<jsp:directive.page session="false"/>
|
||||||
<jsp:scriptlet>response.setHeader("Cache-Control", "public");</jsp:scriptlet>
|
<jsp:scriptlet>
|
||||||
<jsp:text><![CDATA[<!DOCTYPE html>]]></jsp:text>
|
response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
|
||||||
<html>
|
response.setHeader("Location", "decode.jspx");
|
||||||
<head>
|
</jsp:scriptlet>
|
||||||
<title>Redirect</title>
|
|
||||||
<meta charset="UTF-8"/>
|
|
||||||
<meta http-equiv="Refresh" content="0;url=decode.jspx"/>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
</jsp:root>
|
</jsp:root>
|
||||||
|
|
Loading…
Reference in a new issue