Skip to content

Commit

Permalink
Fix: wrong format of jsonp
Browse files Browse the repository at this point in the history
  • Loading branch information
osxtest committed Feb 2, 2024
1 parent b173685 commit 5085cf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void doPost(HttpServletRequest request, HttpServletResponse response) thr
param = param.replace("\n", "").replace("\r", "").replace("\"", "\\\"");
param = param.replace("<", "").replace(">", "");
try {
response.getWriter().println(param + "{\"username\":\"test\"}");
response.getWriter().println(param + "({\"username\":\"test\"})");
} catch (Exception e) {
response.getWriter().println(e.toString());
return;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GET /jsonp/BS00113 HTTP/1.1
GET /jsonp/BS00113?BS00113=callback HTTP/1.1
Host: localhost
Connection: close
Accept-Encoding: gzip, deflate
Expand Down

0 comments on commit 5085cf6

Please sign in to comment.