Resolve errors correctly (#8)

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
sigonasr2 2 years ago
parent ec8cbe7d74
commit 5b345f0a1a
  1. BIN
      bin/ArcadeReader$1.class
  2. BIN
      bin/ArcadeReader.class
  3. BIN
      bin/exceptions/FailedResponseException.class
  4. BIN
      bin/readers/Box.class
  5. BIN
      bin/readers/ColorRange.class
  6. BIN
      bin/readers/DDRReader.class
  7. BIN
      bin/readers/ITGReader.class
  8. BIN
      bin/readers/LoveLiveReader.class
  9. BIN
      bin/readers/PopnReader.class
  10. BIN
      bin/readers/Reader.class
  11. BIN
      bin/readers/SoundVoltexReader.class
  12. BIN
      bin/readers/TestReader.class
  13. BIN
      bin/readers/fonts/Font.class
  14. BIN
      bin/readers/fonts/Glyph.class
  15. BIN
      bin/requests/GETRequest$1.class
  16. BIN
      bin/requests/GETRequest.class
  17. BIN
      bin/requests/MultipartUtility.class
  18. BIN
      bin/requests/POSTRequest$1.class
  19. BIN
      bin/requests/POSTRequest.class
  20. BIN
      bin/sigPlace.class
  21. BIN
      bin/sigServer.class
  22. BIN
      sigPlace.jar
  23. 18
      sigPlace.java

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -137,14 +137,16 @@ public class sigPlace {
} }
if (matches>=EXPECTED_MATCHES&&!submitted) { if (matches>=EXPECTED_MATCHES&&!submitted) {
System.out.println("Data is reasonable, prepare for submitting..."); System.out.println("Data is reasonable, prepare for submitting...");
POSTRequest postRes = new POSTRequest("http://"+args[1]+"/uploadform.html",temp); try {
HttpResponse<String> res = ((HttpResponse<String>)postRes.run()); POSTRequest postRes = new POSTRequest("http://"+args[1]+"/uploadform.html",temp);
if (res.statusCode()==200) { HttpResponse<String> res = ((HttpResponse<String>)postRes.run());
playSound(Paths.get("ding.wav")); if (res.statusCode()==0) {
System.out.println("Successful!"); playSound(Paths.get("ding.wav"));
submitted=true; System.out.println("Successful!");
} else { submitted=true;
System.out.println("Got status code "+res); }
} catch (FailedResponseException e) {
System.out.println("Failed! "+e.getMessage());
} }
} }
} }

Loading…
Cancel
Save