Skip to content

Commit 83f2ea1

Browse files
committed
Fixed return message
POST, not GET Signed-off-by: Dominik Schadow <dominikschadow@googlemail.com>
1 parent db0c8c7 commit 83f2ea1

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

Ch08_CSRF/src/main/java/de/dominikschadow/webappsecurity/CSRFServlet.java

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
/*
2-
* Copyright (C) 2013 Dominik Schadow, dominikschadow@gmail.com This file is part of JavaWebAppSecurity. Licensed under
3-
* the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You
4-
* may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or
5-
* agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
6-
* OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
7-
* and limitations under the License.
2+
* Copyright (C) 2013 Dominik Schadow, dominikschadow@gmail.com
3+
*
4+
* This file is part of JavaWebAppSecurity.
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
817
*/
918
package de.dominikschadow.webappsecurity;
1019

@@ -61,7 +70,7 @@ protected void doPost(HttpServletRequest request, HttpServletResponse response)
6170
response.setContentType("text/html");
6271

6372
try (PrintWriter out = response.getWriter()) {
64-
out.println("Received " + name + " as GET parameter");
73+
out.println("Received " + name + " as POST parameter");
6574
} catch (IOException ex) {
6675
ex.printStackTrace();
6776
}

0 commit comments

Comments
 (0)