daveappserver 0.7.6 → 0.7.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/appserver.js +7 -7
  2. package/package.json +1 -1
package/appserver.js CHANGED
@@ -1,4 +1,4 @@
1
- var myVersion = "0.7.6", myProductName = "daveAppServer";
1
+ var myVersion = "0.7.7", myProductName = "daveAppServer";
2
2
 
3
3
  exports.start = startup;
4
4
  exports.notifySocketSubscribers = notifySocketSubscribers;
@@ -1734,14 +1734,14 @@ function startup (options, callback) {
1734
1734
  return (false);
1735
1735
  }
1736
1736
  function http404Callback (theRequest) {
1737
+ function return404 () {
1738
+ theRequest.httpReturn (404, "text/plain", "Not found.");
1739
+ }
1740
+ function returnPlainText (s) {
1741
+ theRequest.httpReturn (200, "text/plain", s.toString ());
1742
+ }
1737
1743
  if (config.flStorageEnabled) {
1738
1744
  if (checkPathForIllegalChars (theRequest.path)) {
1739
- function return404 () {
1740
- theRequest.httpReturn (404, "text/plain", "Not found.");
1741
- }
1742
- function returnPlainText (s) {
1743
- theRequest.httpReturn (200, "text/plain", s.toString ());
1744
- }
1745
1745
 
1746
1746
  function getFileContent (screenname, relpath, flprivate, callback) { //9/8/21 by DW
1747
1747
  var f = getFilePath (screenname, relpath, flprivate);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "daveappserver",
3
3
  "description": "Factored code that was appearing in all my servers.",
4
- "version": "0.7.6",
4
+ "version": "0.7.7",
5
5
  "main": "appserver.js",
6
6
  "repository": {
7
7
  "type" : "git",