Maybe it's bad to return
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
This commit is contained in:
parent
05a0e59e26
commit
1b946b4880
@ -147,14 +147,12 @@ public class sigServer {
|
|||||||
if (!wroteData) {
|
if (!wroteData) {
|
||||||
System.out.println("Upload failed!");
|
System.out.println("Upload failed!");
|
||||||
CreateRequest(client,"400","Bad Request",Paths.get(sigPlace.OUTDIR,"testfile.html"));
|
CreateRequest(client,"400","Bad Request",Paths.get(sigPlace.OUTDIR,"testfile.html"));
|
||||||
return;
|
|
||||||
} else {
|
} else {
|
||||||
System.out.println("Saving upload to "+myFile);
|
System.out.println("Saving upload to "+myFile);
|
||||||
if (filename.contains(".png")) {
|
if (filename.contains(".png")) {
|
||||||
CreateRequest(client,"200","OK",Paths.get(sigPlace.OUTDIR,"testfile.html"));
|
CreateRequest(client,"200","OK",Paths.get(sigPlace.OUTDIR,"testfile.html"));
|
||||||
ArcadeReader.submitToDatabase(Paths.get(sigPlace.ARCADEDIR,filename));
|
ArcadeReader.submitToDatabase(Paths.get(sigPlace.ARCADEDIR,filename));
|
||||||
System.out.println("Submitted to the database!");
|
System.out.println("Submitted to the database!");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
filename=null;
|
filename=null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user