Skip to content

Commit 00f6bcf

Browse files
committed
Merge pull request javaee-samples#97 from mgreau/master
WildFly : REST client doesn't work, XMLHttpRequest need to be reopen before each request
2 parents 1517049 + defd52a commit 00f6bcf

File tree

1 file changed

+1
-1
lines changed
  • websocket/websocket-vs-rest/src/main/webapp

1 file changed

+1
-1
lines changed

websocket/websocket-vs-rest/src/main/webapp/rest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ function restEchoText() {
7171
payload += "x";
7272
}
7373
restStartTime = new Date().getTime();
74-
xhr.open("POST", restUri, false);
7574
for (var i = 0; i < times.value; i++) {
75+
xhr.open("POST", restUri, false);
7676
xhr.send(payload);
7777
restSendBar.value += 100 / times.value;
7878
}

0 commit comments

Comments
 (0)