master
Dave Winer 10 years ago
parent 015b1abcdb
commit 2afb640c24

@ -1,4 +1,4 @@
var myVersion = "0.42", myProductName = "pagePark", myPort = 80; var myVersion = "0.42", myProductName = "pagePark";
//The MIT License (MIT) //The MIT License (MIT)
@ -397,7 +397,7 @@ function handleHttpRequest (httpRequest, httpResponse) {
else { else {
port = 80; port = 80;
} }
console.log (httpRequest.method + " " + host + ":" + port + " " + lowerpath); console.log (now.toLocaleTimeString () + " " + httpRequest.method + " " + host + ":" + port + " " + lowerpath);
switch (lowerpath) { switch (lowerpath) {
case "/version": case "/version":
httpResponse.writeHead (200, {"Content-Type": "text/plain"}); httpResponse.writeHead (200, {"Content-Type": "text/plain"});

Loading…
Cancel
Save