Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
sbmaggarwal committed Dec 1, 2016
1 parent badcd11 commit b592a3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javax-servlets/src/main/java/com/root/FormServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ protected void doPost(HttpServletRequest request, HttpServletResponse response)

try {
double bmi = calculateBMI(Double.parseDouble(weight), Double.parseDouble(height));

request.setAttribute("bmi", bmi);
response.setHeader("Test", "Success");
response.setHeader("BMI", String.valueOf(bmi));
Expand Down

0 comments on commit b592a3e

Please sign in to comment.