mirror of
https://github.com/fergalmoran/chrometophone.git
synced 2025-12-22 09:41:51 +00:00
Fix status code (say if the account can't be authorized)
This commit is contained in:
@@ -42,7 +42,7 @@ public class RegisterServlet extends HttpServlet {
|
||||
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {
|
||||
doGet(req, resp);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
|
||||
resp.setContentType("text/plain");
|
||||
@@ -74,6 +74,7 @@ public class RegisterServlet extends HttpServlet {
|
||||
pm.close();
|
||||
}
|
||||
} else {
|
||||
resp.setStatus(400);
|
||||
resp.getWriter().println(ERROR_STATUS + " (Not authorized)");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user