Dorian Niemiec [Mon, 13 May 2024 15:59:48 +0000 (17:59 +0200)]
Improve HTTP partial content request logging
Dorian Niemiec [Mon, 13 May 2024 15:56:58 +0000 (17:56 +0200)]
Add checks for zero-length head and foot in static file serving function
Dorian Niemiec [Mon, 13 May 2024 15:29:18 +0000 (17:29 +0200)]
Added support for Range requests for HTML files
Dorian Niemiec [Mon, 13 May 2024 15:01:11 +0000 (17:01 +0200)]
Fix the previous commit
Dorian Niemiec [Mon, 13 May 2024 14:59:41 +0000 (16:59 +0200)]
Reduced calls to "mime-types" library
Dorian Niemiec [Mon, 6 May 2024 09:55:26 +0000 (11:55 +0200)]
Update the design of default HTML pages
Dorian Niemiec [Mon, 6 May 2024 09:04:05 +0000 (11:04 +0200)]
Correct the CSS for HTML tables
Dorian Niemiec [Mon, 6 May 2024 09:00:54 +0000 (11:00 +0200)]
Add CSS to default error pages
Dorian Niemiec [Sun, 5 May 2024 20:24:35 +0000 (22:24 +0200)]
Clean up the code
Dorian Niemiec [Sun, 5 May 2024 20:23:25 +0000 (22:23 +0200)]
Partially revert previous commit (add blocking calls back due to degraded performance in Bun)
Dorian Niemiec [Sun, 5 May 2024 20:07:44 +0000 (22:07 +0200)]
Remove blocking calls from custom head and custom foot functionality. Also optimize built-in "vres" callbacks.
Dorian Niemiec [Sun, 5 May 2024 19:26:13 +0000 (21:26 +0200)]
Replaced wrapper over WHATWG URL API with custom URL parser
Dorian Niemiec [Fri, 3 May 2024 10:02:18 +0000 (12:02 +0200)]
Fix syntax error
Dorian Niemiec [Fri, 3 May 2024 10:01:17 +0000 (12:01 +0200)]
Remove calls to getCustomHeaders in vres function
Dorian Niemiec [Wed, 1 May 2024 12:14:12 +0000 (14:14 +0200)]
Revert previous commit
Dorian Niemiec [Wed, 1 May 2024 12:12:04 +0000 (14:12 +0200)]
Move nested functions to the bottom of functions
Dorian Niemiec [Wed, 1 May 2024 12:08:49 +0000 (12:08 +0000)]
Replaced path.extname function with regex-based custom one. Also remove "pth" variable from static file serving function
Dorian Niemiec [Wed, 1 May 2024 05:20:56 +0000 (07:20 +0200)]
Removed blocking calls from directory listing function
Dorian Niemiec [Mon, 29 Apr 2024 18:08:33 +0000 (20:08 +0200)]
Fix all compression algorithms dependent on Brotli
Dorian Niemiec [Mon, 29 Apr 2024 17:58:39 +0000 (19:58 +0200)]
Optimized HTTP compression functionality
Dorian Niemiec [Mon, 29 Apr 2024 17:20:17 +0000 (19:20 +0200)]
Fix crashes related to the request ID generation
Dorian Niemiec [Sat, 27 Apr 2024 11:51:05 +0000 (13:51 +0200)]
Fix incompatibilites with Bun
Dorian Niemiec [Sat, 27 Apr 2024 04:45:16 +0000 (06:45 +0200)]
Errors that occurred while adding SNI context to a server are now ignored.
Dorian Niemiec [Sat, 27 Apr 2024 04:01:09 +0000 (06:01 +0200)]
Add an inspector condition to disabling stdout
Dorian Niemiec [Sat, 27 Apr 2024 03:53:08 +0000 (05:53 +0200)]
When stdout is not a terminal, disable it to improve performance of SVR.JS
Dorian Niemiec [Wed, 24 Apr 2024 11:03:53 +0000 (13:03 +0200)]
Optimize portions from directory listing function
Dorian Niemiec [Wed, 24 Apr 2024 10:58:46 +0000 (12:58 +0200)]
Move counter if blocks to another if block
Dorian Niemiec [Wed, 24 Apr 2024 10:52:32 +0000 (12:52 +0200)]
Disable OpenSSL EOL notification for Bun (Bun uses BoringSSL)
Dorian Niemiec [Sun, 21 Apr 2024 17:39:30 +0000 (19:39 +0200)]
Use os.availableParallelism if it is implemented
Dorian Niemiec [Sun, 21 Apr 2024 14:46:01 +0000 (16:46 +0200)]
Replace (...).indexOf("/") != 0 with (...)[0] != "/"
Dorian Niemiec [Sun, 21 Apr 2024 14:32:20 +0000 (16:32 +0200)]
Remove duplicate client socket check
Dorian Niemiec [Sat, 13 Apr 2024 09:13:57 +0000 (11:13 +0200)]
Fix server crashes with .dirimages
Dorian Niemiec [Sat, 13 Apr 2024 09:08:56 +0000 (11:08 +0200)]
Merge branch 'main' of https://git.svrjs.org/svrjs
Dorian Niemiec [Sat, 13 Apr 2024 09:08:48 +0000 (11:08 +0200)]
Fix .dirimages directory returning 500 error, if it is not present in the web root
Dorian Niemiec [Wed, 10 Apr 2024 07:15:23 +0000 (09:15 +0200)]
Replaced deprecated "substr" function with "substring"
Dorian Niemiec [Mon, 8 Apr 2024 16:32:25 +0000 (18:32 +0200)]
GitHub test successful!
Dorian Niemiec [Mon, 8 Apr 2024 16:31:38 +0000 (18:31 +0200)]
Test GitHub mirror
Dorian Niemiec [Mon, 8 Apr 2024 15:19:04 +0000 (17:19 +0200)]
Update main.yml - change Git user name to "github"
Dorian Niemiec [Mon, 8 Apr 2024 15:14:44 +0000 (17:14 +0200)]
Update main.yml
Dorian Niemiec [Mon, 8 Apr 2024 15:12:32 +0000 (17:12 +0200)]
Create main.yml
Dorian Niemiec [Sun, 7 Apr 2024 13:52:51 +0000 (15:52 +0200)]
Make configJSON.enableCompression conditions consistent
Dorian Niemiec [Sun, 7 Apr 2024 13:52:07 +0000 (15:52 +0200)]
Fix "enableCompression not found" error
Dorian Niemiec [Sun, 7 Apr 2024 13:31:27 +0000 (15:31 +0200)]
Fix problems with Brotli compression on Bun
Dorian Niemiec [Sun, 7 Apr 2024 07:27:02 +0000 (09:27 +0200)]
Change the order of static file serving.
Dorian Niemiec [Sun, 7 Apr 2024 07:25:14 +0000 (09:25 +0200)]
Optimize check for compressible data
Dorian Niemiec [Sun, 7 Apr 2024 07:19:45 +0000 (09:19 +0200)]
Remove redundant fs.stat in static file serving function
Dorian Niemiec [Wed, 3 Apr 2024 16:56:01 +0000 (18:56 +0200)]
Added CVE-2024-27982 notice
Dorian Niemiec [Tue, 2 Apr 2024 15:33:21 +0000 (17:33 +0200)]
Disabled trailing slash redirection for proxy requests
Dorian Niemiec [Tue, 2 Apr 2024 09:21:04 +0000 (11:21 +0200)]
Fix "Can't read property 1 of undefined" error. Also unify crash handlers.
Dorian Niemiec [Tue, 2 Apr 2024 09:01:13 +0000 (11:01 +0200)]
Change default configuration file
Dorian Niemiec [Tue, 2 Apr 2024 09:00:47 +0000 (11:00 +0200)]
Remove .kate-swp files
Dorian Niemiec [Tue, 2 Apr 2024 09:00:25 +0000 (11:00 +0200)]
Change default `dontCompress` regular expressions
Dorian Niemiec [Tue, 2 Apr 2024 08:53:02 +0000 (10:53 +0200)]
Update conditions for directory listing icons
Dorian Niemiec [Tue, 2 Apr 2024 08:37:55 +0000 (10:37 +0200)]
Add .mov, .wma and .wmv files
Dorian Niemiec [Tue, 2 Apr 2024 08:35:44 +0000 (10:35 +0200)]
Add default file formats not compressed list to SVR.JS itself. Also compressed audio/video file formats to one regular expression
Dorian Niemiec [Tue, 2 Apr 2024 08:30:26 +0000 (10:30 +0200)]
Added more file formats to be excluded from compression
Dorian Niemiec [Mon, 1 Apr 2024 19:48:19 +0000 (21:48 +0200)]
Bun's crypto.scrypt doesn't block the event loop that much compared to crypto.pbkdf2
Dorian Niemiec [Sun, 31 Mar 2024 17:30:13 +0000 (19:30 +0200)]
Remove unneeded "listeningMessage.js" files
Dorian Niemiec [Sun, 31 Mar 2024 17:15:10 +0000 (19:15 +0200)]
Change all of the internal calls to "callServerError"
Dorian Niemiec [Sun, 31 Mar 2024 17:02:43 +0000 (19:02 +0200)]
Sort out the server error description list
Dorian Niemiec [Sun, 31 Mar 2024 16:58:19 +0000 (18:58 +0200)]
Collapse even more errno exit code
Dorian Niemiec [Sun, 31 Mar 2024 16:55:27 +0000 (18:55 +0200)]
Change code for Node.JS builds without crypto library
Dorian Niemiec [Sun, 31 Mar 2024 16:51:39 +0000 (18:51 +0200)]
Make server listening error description list an object in the global scope
Dorian Niemiec [Sun, 31 Mar 2024 16:44:00 +0000 (18:44 +0200)]
Optimize server error handlers
Dorian Niemiec [Fri, 29 Mar 2024 09:58:50 +0000 (10:58 +0100)]
Fix bug with res.writeHead method
Dorian Niemiec [Tue, 19 Mar 2024 16:12:28 +0000 (17:12 +0100)]
Fix bug with request domain names not showing in server logs
Dorian Niemiec [Sun, 17 Mar 2024 20:39:21 +0000 (21:39 +0100)]
Fix the "SERVER MESSAGE" in SVR.JS log viewer and log highlighter
Dorian Niemiec [Sun, 17 Mar 2024 20:38:24 +0000 (21:38 +0100)]
Update SVR.JS log viewer and log highlighter to reflect the changes in SVR.JS itself
Dorian Niemiec [Sun, 17 Mar 2024 20:32:39 +0000 (21:32 +0100)]
Make server message types bold
Dorian Niemiec [Sun, 17 Mar 2024 20:23:25 +0000 (21:23 +0100)]
Make "SVR.JS - a web server running on Node.JS" bold
Dorian Niemiec [Sun, 17 Mar 2024 14:20:44 +0000 (15:20 +0100)]
Remove not applicable tests from test page
Dorian Niemiec [Sun, 17 Mar 2024 14:17:41 +0000 (15:17 +0100)]
Fix language error in the comment
Dorian Niemiec [Sun, 17 Mar 2024 14:13:07 +0000 (15:13 +0100)]
Add "localhost" entry to the block list, when "block localhost" is typed into SVR.JS rather than "::ffff:localhost".
Dorian Niemiec [Sun, 17 Mar 2024 09:20:00 +0000 (10:20 +0100)]
Make the improvement consistent with password verification function
Dorian Niemiec [Sun, 17 Mar 2024 09:17:53 +0000 (10:17 +0100)]
Improve protection against user enumeration
Dorian Niemiec [Sun, 17 Mar 2024 09:00:01 +0000 (10:00 +0100)]
Modified HTTP authentication functionality
Dorian Niemiec [Sun, 17 Mar 2024 08:30:26 +0000 (09:30 +0100)]
Optimize non-standard code functionality
Dorian Niemiec [Sat, 16 Mar 2024 23:59:53 +0000 (00:59 +0100)]
Remove <nocode> (non-standard) tags for bad (broken) directory listing entries
Dorian Niemiec [Sat, 16 Mar 2024 23:57:47 +0000 (00:57 +0100)]
Optimized bad (broken) entry generation in directory listing
Dorian Niemiec [Sat, 16 Mar 2024 23:54:47 +0000 (00:54 +0100)]
Optimized some request parameter logging
Dorian Niemiec [Sat, 16 Mar 2024 23:51:34 +0000 (00:51 +0100)]
Add more use of status code names in http.STATUS_CODES
Dorian Niemiec [Sat, 16 Mar 2024 23:48:21 +0000 (00:48 +0100)]
Change log message for client being in block list
Dorian Niemiec [Sat, 16 Mar 2024 23:46:32 +0000 (00:46 +0100)]
Replaced client in the block list error message with generic 403 Forbidden error message
Dorian Niemiec [Sat, 16 Mar 2024 23:39:21 +0000 (00:39 +0100)]
Replace some instances of "blacklist" (racist?) with "block list"
Dorian Niemiec [Sat, 16 Mar 2024 23:35:44 +0000 (00:35 +0100)]
Changed CVE-2024-22019 warning text
Dorian Niemiec [Wed, 13 Mar 2024 02:00:56 +0000 (03:00 +0100)]
Added CVE-2024-22019 Node.JS vulnerability warning.
Dorian Niemiec [Sat, 9 Mar 2024 15:32:01 +0000 (16:32 +0100)]
Fix wwwredirect function
Dorian Niemiec [Sat, 9 Mar 2024 15:10:41 +0000 (16:10 +0100)]
Optimize HTTP/1.x compatiblity res.writeHead function
Dorian Niemiec [Sat, 9 Mar 2024 15:08:46 +0000 (16:08 +0100)]
Change error handler for missing HTTP/2 pseudoheaders
Dorian Niemiec [Sat, 9 Mar 2024 15:00:19 +0000 (16:00 +0100)]
Optimize HTTP/1.x compatibility header setting
Dorian Niemiec [Sat, 9 Mar 2024 14:57:56 +0000 (15:57 +0100)]
Fix comparison optimized in the previous commit
Dorian Niemiec [Sat, 9 Mar 2024 14:57:30 +0000 (15:57 +0100)]
Be case insensitive in header name exclusion in shimmed HTTP/1.x res.writeHead method
Dorian Niemiec [Sat, 9 Mar 2024 14:50:36 +0000 (15:50 +0100)]
Optimize missing header check
Dorian Niemiec [Sat, 9 Mar 2024 14:48:23 +0000 (15:48 +0100)]
Remove try/catch block in HTTP/1.x compatibility shim; errors there are non-existent
Dorian Niemiec [Sat, 9 Mar 2024 14:45:31 +0000 (15:45 +0100)]
Be case insensitive in header name exclusion in shimmed HTTP/1.x res.setHeader method
Dorian Niemiec [Sun, 3 Mar 2024 19:59:20 +0000 (20:59 +0100)]
Compressed default directory listing icons
Dorian Niemiec [Sun, 3 Mar 2024 15:14:40 +0000 (16:14 +0100)]
Changed license page: added maximum width to list of packages used by SVR.JS
Dorian Niemiec [Sun, 3 Mar 2024 15:08:28 +0000 (16:08 +0100)]
Change SVR.JS logo CSS properties on the default page
Dorian Niemiec [Sun, 3 Mar 2024 15:05:56 +0000 (16:05 +0100)]
Make the default page fit on very small screens
Dorian Niemiec [Sun, 3 Mar 2024 14:58:56 +0000 (15:58 +0100)]
Show list bullets on browsers not supporting "display: inline-block" on the default page.