mirror of
https://github.com/zxing/zxing.git
synced 2024-11-09 20:44:03 -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,
|
||||
maxRequestSize = 10_000_000,
|
||||
fileSizeThreshold = 1_000_000,
|
||||
location = "/tmp")
|
||||
location = "/tmp/DecodeServlet")
|
||||
@WebServlet("/w/decode")
|
||||
public final class DecodeServlet extends HttpServlet {
|
||||
|
||||
|
|
|
@ -16,16 +16,9 @@
|
|||
-->
|
||||
<!-- Author: Sean Owen -->
|
||||
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1">
|
||||
<jsp:directive.page contentType="text/html" session="false"/>
|
||||
<jsp:scriptlet>response.setHeader("Cache-Control", "public");</jsp:scriptlet>
|
||||
<jsp:text><![CDATA[<!DOCTYPE html>]]></jsp:text>
|
||||
<html>
|
||||
<head>
|
||||
<title>Redirect</title>
|
||||
<meta charset="UTF-8"/>
|
||||
<meta http-equiv="Refresh" content="0;url=w/decode.jspx"/>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
||||
<jsp:directive.page session="false"/>
|
||||
<jsp:scriptlet>
|
||||
response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
|
||||
response.setHeader("Location", "w/decode.jspx");
|
||||
</jsp:scriptlet>
|
||||
</jsp:root>
|
||||
|
|
|
@ -16,16 +16,9 @@
|
|||
-->
|
||||
<!-- Author: Sean Owen -->
|
||||
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1">
|
||||
<jsp:directive.page contentType="text/html" session="false"/>
|
||||
<jsp:scriptlet>response.setHeader("Cache-Control", "public");</jsp:scriptlet>
|
||||
<jsp:text><![CDATA[<!DOCTYPE html>]]></jsp:text>
|
||||
<html>
|
||||
<head>
|
||||
<title>Redirect</title>
|
||||
<meta charset="UTF-8"/>
|
||||
<meta http-equiv="Refresh" content="0;url=decode.jspx"/>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
||||
<jsp:directive.page session="false"/>
|
||||
<jsp:scriptlet>
|
||||
response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
|
||||
response.setHeader("Location", "decode.jspx");
|
||||
</jsp:scriptlet>
|
||||
</jsp:root>
|
||||
|
|
Loading…
Reference in a new issue