Skip to content

Commit

Permalink
Update WebWorker.java
Browse files Browse the repository at this point in the history
  • Loading branch information
rhollomon committed Mar 2, 2023
1 parent 19d9e7c commit 44b5473
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SimpleWebServer/src/edu/nmsu/cs/webserver/WebWorker.java
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ private void writeHTTPHeader(OutputStream os, String contentType, String fName)
os.write("HTTP/1.1 200 OK\n".getBytes());
}

if(contentType.equals("image/gif"))

os.write("Date: ".getBytes());
os.write((df.format(d)).getBytes());
os.write("\n".getBytes());
Expand Down

0 comments on commit 44b5473

Please sign in to comment.