diff --git a/out/DIRECTORY_LISTING b/out/DIRECTORY_LISTING index ed2922d..f116d10 100644 --- a/out/DIRECTORY_LISTING +++ b/out/DIRECTORY_LISTING @@ -18,13 +18,13 @@
-

Directory Listing for /

📁.. (Previous Directory)
📁articles 2022-05-11T20:04:09.890362Z gitpod 190
-
🗎codeBackground 2022-05-11T20:04:09.826362Z gitpod 2635
-
🗎otherpage.html 2022-05-11T20:04:09.866362Z gitpod 8892
-
🗎reset.css 2022-05-11T20:04:09.834362Z gitpod 1093
-
🗎sig.css 2022-05-11T20:04:09.842362Z gitpod 4702
-
🗎testfile.html 2022-05-11T20:04:09.866362Z gitpod 829
-
🗎uploadform.html 2022-05-11T20:04:09.866362Z gitpod 871
+

Directory Listing for /

📁.. (Previous Directory)
📁articles 2022-05-11T20:17:07.361619Z gitpod 190
+
🗎codeBackground 2022-05-11T20:17:07.273619Z gitpod 2635
+
🗎otherpage.html 2022-05-11T20:17:07.333619Z gitpod 8892
+
🗎reset.css 2022-05-11T20:17:07.285619Z gitpod 1093
+
🗎sig.css 2022-05-11T20:17:07.297619Z gitpod 4702
+
🗎testfile.html 2022-05-11T20:17:07.333619Z gitpod 829
+
🗎uploadform.html 2022-05-11T20:17:07.337619Z gitpod 884
diff --git a/out/articles/DIRECTORY_LISTING b/out/articles/DIRECTORY_LISTING index ad837c7..c5b9ccc 100644 --- a/out/articles/DIRECTORY_LISTING +++ b/out/articles/DIRECTORY_LISTING @@ -18,11 +18,11 @@
-

Directory Listing for /articles/

📁.. (Previous Directory)
🗎curabitur vel tempus ex.article 2022-05-11T20:04:09.810362Z gitpod 579
-
🗎sigplace1.article 2022-05-11T20:04:09.814362Z gitpod 3807
-
📁test articles 2022-05-11T20:04:09.882362Z gitpod 147
-
🗎curabitur vel tempus ex.article.html 2022-05-11T20:04:09.874362Z gitpod 1296
-
🗎sigplace1.article.html 2022-05-11T20:04:09.878362Z gitpod 4524
+

Directory Listing for /articles/

📁.. (Previous Directory)
🗎curabitur vel tempus ex.article 2022-05-11T20:17:07.257619Z gitpod 579
+
🗎sigplace1.article 2022-05-11T20:17:07.265619Z gitpod 3807
+
📁test articles 2022-05-11T20:17:07.353619Z gitpod 147
+
🗎curabitur vel tempus ex.article.html 2022-05-11T20:17:07.341619Z gitpod 1296
+
🗎sigplace1.article.html 2022-05-11T20:17:07.345619Z gitpod 4524
diff --git a/out/articles/test articles/DIRECTORY_LISTING b/out/articles/test articles/DIRECTORY_LISTING index 1f0e069..eb98df3 100644 --- a/out/articles/test articles/DIRECTORY_LISTING +++ b/out/articles/test articles/DIRECTORY_LISTING @@ -18,12 +18,12 @@
-

Directory Listing for /articles/test articles/

📁.. (Previous Directory)
🗎test1.article 2022-05-11T20:04:09.818362Z gitpod 1068
-
🗎test2.article 2022-05-11T20:04:09.818362Z gitpod 764
-
🗎test3.article 2022-05-11T20:04:09.818362Z gitpod 977
-
🗎test1.article.html 2022-05-11T20:04:09.878362Z gitpod 1785
-
🗎test2.article.html 2022-05-11T20:04:09.882362Z gitpod 1481
-
🗎test3.article.html 2022-05-11T20:04:09.882362Z gitpod 1694
+

Directory Listing for /articles/test articles/

📁.. (Previous Directory)
🗎test1.article 2022-05-11T20:17:07.265619Z gitpod 1068
+
🗎test2.article 2022-05-11T20:17:07.265619Z gitpod 764
+
🗎test3.article 2022-05-11T20:17:07.269619Z gitpod 977
+
🗎test1.article.html 2022-05-11T20:17:07.345619Z gitpod 1785
+
🗎test2.article.html 2022-05-11T20:17:07.349619Z gitpod 1481
+
🗎test3.article.html 2022-05-11T20:17:07.353619Z gitpod 1694
diff --git a/out/codeBackground b/out/codeBackground index 4d031bb..5a0c191 100644 --- a/out/codeBackground +++ b/out/codeBackground @@ -9,7 +9,8 @@ ZonedDateTime modifiedDate = null; requestLine=in.readLine(); //Read the first line, this should be our request. if (requestLine!=null) { - while ((line=in.readLine())!=null) { + while (in.ready()) { + line=in.readLine(); System.out.println(line); if (line.contains("If-Modified-Since: ")) { String modifiedSince=line.replace("If-Modified-Since: ",""); @@ -37,4 +38,3 @@ if (requestloc.equals("/")) { //Send default directory. if (modifiedDate==null||modifiedDate.isBefore(GetLastModifiedDate(sigPlace.OUTDIR,"testfile.html"))) { - System.out.println(GetLastModifiedDate(sigPlace.OUTDIR,"testfile.html")+"//"+modifiedDate); diff --git a/out/uploadform.html b/out/uploadform.html index 3adeca7..b78099f 100644 --- a/out/uploadform.html +++ b/out/uploadform.html @@ -20,7 +20,7 @@ SigPlace
- +
diff --git a/sigServer.java b/sigServer.java index a27f970..b941964 100644 --- a/sigServer.java +++ b/sigServer.java @@ -33,7 +33,8 @@ public class sigServer { ZonedDateTime modifiedDate = null; requestLine=in.readLine(); //Read the first line, this should be our request. if (requestLine!=null) { - while ((line=in.readLine())!=null) { + while (in.ready()) { + line=in.readLine(); System.out.println(line); if (line.contains("If-Modified-Since: ")) { String modifiedSince=line.replace("If-Modified-Since: ",""); diff --git a/sitefiles/uploadform.html b/sitefiles/uploadform.html index 7c4de92..ee0fdb7 100644 --- a/sitefiles/uploadform.html +++ b/sitefiles/uploadform.html @@ -1,5 +1,5 @@ $SITENAME
- +
\ No newline at end of file