Skip to content

Commit 9f851cf

Browse files
committed
Fix typos and bugs: aheared/publically/cheracters/diveces in comments, ResponceObjective typo, duplicate fDevices entries, double semicolons, missing HTML tag
1 parent e790207 commit 9f851cf

File tree

6 files changed

+26
-26
lines changed

6 files changed

+26
-26
lines changed

CGITEST/readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ hello.pl - Displays "Hello, World!" in plain form. Requires Perl installed.
1313
Just place hello.pl to /cgi-bin/ and request /cgi-bin/hello.pl
1414

1515

16-
login.html, login.c login.dpr and loginh.pas give an example of processing
16+
login.htm, login.c, login.dpr, and loginu.pas give an example of processing
1717
CGI arguments from applications written in C or Delphi.
1818

1919

SRC/SrvMain.pas

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright (C) 1997-2000 RIT Research Labs
77
//
88
// This programs is free for commercial and non-commercial use as long as
9-
// the following conditions are aheared to.
9+
// the following conditions are adhered to.
1010
//
1111
// Copyright remains RITLABS S.R.L., and as such any Copyright notices
1212
// in the code are not to be removed. If this package is used in a
@@ -40,7 +40,7 @@
4040
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
4141
// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4242
//
43-
// The licence and distribution terms for any publically available
43+
// The licence and distribution terms for any publicly available
4444
// version or derivative of this code cannot be changed. i.e. this code
4545
// cannot simply be copied and put under another distribution licence
4646
// (including the GNU Public Licence).
@@ -286,7 +286,7 @@ THTTPData = class
286286
ErrorMsg, Method, RequestURI, HTTPVersion, AuthUser, AuthPassword, AuthType,
287287
URIPath, URIParams, URIQuery, URIQueryParam: AnsiString;
288288

289-
ResponceObjective: TAbstractHttpResponseData;
289+
ResponseObjective: TAbstractHttpResponseData;
290290

291291
RequestGeneralHeader: TGeneralHeader;
292292
RequestRequestHeader: TRequestHeader;
@@ -694,7 +694,7 @@ function TCollector.Collect(var Buf: THTTPServerThreadBufer;
694694

695695
if CollectEntityBody then
696696
begin
697-
if (CollectEntityBody) and (j > 0) then
697+
if j > 0 then
698698
begin
699699
i := Length(EntityBody);
700700
SetLength(EntityBody, i + j);
@@ -1422,7 +1422,7 @@ function FileIsRegular(const FN: AnsiString): Boolean;
14221422
const
14231423
CDot: AnsiChar = '.';
14241424
fDevices: AnsiString =
1425-
#1'CON'#1'LPT'#1'PRN'#1'NUL'#1'CLOCK$'#1'AUX'#1'COM1'#1'LPT1'#1'LPT2'#1'LPT3'#1'COM2'#1'COM3'#1'COM4'#1'CONIN$'#1'CONOUT$'
1425+
#1'CON'#1'LPT'#1'PRN'#1'NUL'#1'CLOCK$'#1'AUX'#1'COM1'#1'COM2'#1'COM3'#1'COM4'#1'CONIN$'#1'CONOUT$'
14261426
+ #1'COM5'#1'COM6'#1'COM7'#1'COM8'#1'COM9'#1'LPT1'#1'LPT2'#1'LPT3'#1'LPT4'#1'LPT5'#1'LPT6'#1'LPT7'#1'LPT8'#1'LPT9'#1;
14271427
var
14281428
F: THandle;
@@ -1523,8 +1523,8 @@ function WebServerHttpResponse(thr: THTTPServerThread; d: THTTPData)
15231523
PathInfo: AnsiString;
15241524

15251525
// Thanks to Nick McDaniel, Intranaut Inc. (21 January 1999)
1526-
// We were having problems with files that that had spaces in the name (C:\Program Files\). The error that was being generated was "Internal Server Error: Can't open
1527-
// To alievate this problem, we added double quotes to executable and script name
1526+
// We were having problems with files that had spaces in the name (C:\Program Files\). The error that was being generated was "Internal Server Error: Can't open
1527+
// To alleviate this problem, we added double quotes to executable and script name
15281528

15291529
function QuoteSpaced(const s: AnsiString): AnsiString;
15301530
var
@@ -1534,7 +1534,7 @@ function WebServerHttpResponse(thr: THTTPServerThread; d: THTTPData)
15341534
// parameters to Pos() function were improperly ordered
15351535
CSpace := ' ';
15361536
if Pos(CSpace, DelSpaces(s)) <= 0 then
1537-
// Does the file name contain space cheracters inside?
1537+
// Does the file name contain space characters inside?
15381538
begin
15391539
Result := s // No, return it as is
15401540
end
@@ -1893,7 +1893,7 @@ procedure THTTPServerThread.Execute;
18931893
if not RequestCollector.GotEntityBody then
18941894
Continue;
18951895

1896-
// process intity body
1896+
// process entity body
18971897
RequestEntityHeader.CopyEntityBody(RequestCollector);
18981898

18991899
FreeObject(RequestCollector);

SRC/Tiny.dpr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright (C) 1997-2000 RIT Research Labs
77
//
88
// This programs is free for commercial and non-commercial use as long as
9-
// the following conditions are aheared to.
9+
// the following conditions are adhered to.
1010
//
1111
// Copyright remains RITLABS S.R.L., and as such any Copyright notices
1212
// in the code are not to be removed. If this package is used in a
@@ -40,7 +40,7 @@
4040
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
4141
// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4242
//
43-
// The licence and distribution terms for any publically available
43+
// The licence and distribution terms for any publicly available
4444
// version or derivative of this code cannot be changed. i.e. this code
4545
// cannot simply be copied and put under another distribution licence
4646
// (including the GNU Public Licence).

SRC/xBase.pas

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Copyright (C) 2000-2017 RITLABS S.R.L.
77
//
88
// This programs is free for commercial and non-commercial use as long as
9-
// the following conditions are aheared to.
9+
// the following conditions are adhered to.
1010
//
1111
// Copyright remains RITLABS S.R.L., and as such any Copyright notices
1212
// in the code are not to be removed. If this package is used in a
@@ -40,7 +40,7 @@
4040
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
4141
// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4242
//
43-
// The licence and distribution terms for any publically available
43+
// The licence and distribution terms for any publicly available
4444
// version or derivative of this code cannot be changed. i.e. this code
4545
// cannot simply be copied and put under another distribution licence
4646
// (including the GNU Public Licence).
@@ -153,7 +153,7 @@ TuFindData = record
153153
cTruncate, // Once opened, the file is truncated so that
154154
// its size is zero bytes.
155155

156-
cExisting, // For communications resources, console diveces
156+
cExisting, // For communications resources, console devices
157157

158158
cShareAllowWrite, cShareDenyRead,
159159

@@ -434,7 +434,7 @@ function NumBits(I: Integer): Integer; assembler;
434434
procedure XAdd(var Critical, Normal); assembler;
435435
procedure XChg(var Critical, Normal); assembler;
436436

437-
{ --- Win32 Events Extentions }
437+
{ --- Win32 Events Extensions }
438438

439439
function CreateEvtA: THandle;
440440
function CreateEvt(Initial: Boolean): THandle;
@@ -1277,7 +1277,7 @@ procedure LowerPrec(var a, B: Integer; Bits: Byte);
12771277

12781278
////////////////////////////////////////////////////////////////////////
12791279
// //
1280-
// Win32 Events Extentions //
1280+
// Win32 Events Extensions //
12811281
// //
12821282
////////////////////////////////////////////////////////////////////////
12831283

@@ -1644,7 +1644,7 @@ function ReadRegInt(Key: DWORD; const AStrName: AnsiString): DWORD;
16441644
Result := INVALID_REGISTRY_KEY;
16451645
Exit;
16461646
end;
1647-
T := REG_DWORD;;
1647+
T := REG_DWORD;
16481648
S := SizeOf(B);
16491649
PDataBuf := @B;
16501650
e := RegQueryValueExA(Key, // handle of key to query
@@ -1684,7 +1684,7 @@ function ReadRegBin(Key: DWORD; const rvn: AnsiString; Bin: Pointer;
16841684
Result := False;
16851685
Exit;
16861686
end;
1687-
T := REG_BINARY;;
1687+
T := REG_BINARY;
16881688
S := Sz;
16891689
e := RegQueryValueExA(Key, // handle of key to query
16901690
@(rvn[1]), // value to query

history.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ <h2>0.5 (02 December 1997)</h2>
88
<ul>
99
<li>Supported (but not tested enough) "Location" and "Status" CGI script output directives. Your feedback would be appreciated.</li>
1010
<li>Supported CGI command line options, mostly used for ISINDEX query.</li>
11-
<li>Changed the algorithm of determining requester's host name. Now the address resolved back an forward to produce a true picture.</li>
11+
<li>Changed the algorithm of determining requester's host name. Now the address is resolved back and forward to produce a true picture.</li>
1212
<li>Fixed some minor bugs with launching CGI scripts and tested with ActivePerl by <A HREF="http://www.activestate.com/">ActiveState</A>.</li>
1313
<li>Introduced a resetter thread that shuts down the sockets that are completely inactive for 5 minutes.</li>
1414
<li>Duplicate binds are now reported.</li>
15-
<li>It is now possible to bind the daemon to specified port (secong command line parameter) and specified address (third commandline parameter).</li>
15+
<li>It is now possible to bind the daemon to specified port (second command line parameter) and specified address (third command line parameter).</li>
1616
<li>Now supports more CGI environment variables.</li>
1717
</ul>
1818
<h2>0.6 (17 December 1997)</h2>
@@ -86,7 +86,7 @@ <h2>1.9 (11 May 2000)</h2>
8686
<h2>1.94 (06 April 2017)</h2>
8787
<ul>
8888
<li>Added an additional check that the requested file name is safe (see LocalFNameSafe and FileIsRegular): that the file is a normal file rather than a device name, that the file is kept in a directory that does not have hidden or system attribute.</li>
89-
<li>When the sever wants to close the connection due to an error and the client did send the "Connection: Keep-Alive request" header, some clients thought that the connection should continue despite the server didn't send the "Connection: Keep-Alive" response header. Now, in these cases, the server explicitly send the "Connection: Close" response header.</li>
89+
<li>When the server wants to close the connection due to an error and the client did send the "Connection: Keep-Alive" request header, some clients thought that the connection should continue despite the server didn't send the "Connection: Keep-Alive" response header. Now, in these cases, the server explicitly sends the "Connection: Close" response header.</li>
9090
</ul>
9191
<h2>1.95 (08 August 2021)</h2>
9292
<ul>
@@ -95,13 +95,13 @@ <h2>1.95 (08 August 2021)</h2>
9595
<h2>1.96 (06 April 2023)</h2>
9696
<ul>
9797
<li>The file buffers of the access log are flushed after each write, but with a delay of up to 0.1 seconds to prevent excessive flushing under heavy load, when many lines are written with very short time intervals.</li>
98-
<li>There is an error message displayed when TinyWeb is unable to create (open for writing) log files at startup; in earlier versions it just exited silently without notifying the user about the error in any way.
98+
<li>There is an error message displayed when TinyWeb is unable to create (open for writing) log files at startup; in earlier versions it just exited silently without notifying the user about the error in any way.</li>
9999
</ul>
100100
<h2>1.97 (11 April 2023)</h2>
101101
<ul>
102102
<li>Fixed compiler warnings in FPC (Free Pascal)</li>
103103
<li>The file buffers of all log files are flushed, not just the logs of the access logs</li>
104-
<li>The query sting of the GET method is also written to the access log</li>
104+
<li>The query string of the GET method is also written to the access log</li>
105105
</ul>
106106
</body>
107107
</html>

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ To set up the TinyWeb Server, just create a shortcut in the Startup menu with th
1717

1818
Here, `c:\www\bin\tiny.exe` is the path to TinyWeb executable, `c:\www\root` is the path to www home (root) directory, and `c:\www\log` is the directory for log files that TinyWeb keeps.
1919

20-
TinyWeb is not a windowed application, so there is no window with TinyWeb. It is also not a console application, so there is no console window for TinyWeb. Moreover, it is not a Windows Service. Once started, the `tiny.exe` process will appear in Task List. There is no way to stop Tiny Web except via the End Task operation.
20+
TinyWeb is not a windowed application, so there is no window with TinyWeb. It is also not a console application, so there is no console window for TinyWeb. Moreover, it is not a Windows Service. Once started, the `tiny.exe` process will appear in Task List. There is no way to stop Tiny Web except via the "End Task" operation.
2121

2222
## Command-line Options
23-
1. First parameter (mandatory) is a path www home (root) directory.
23+
1. First parameter (mandatory) is a path to the www home (root) directory.
2424
2. Second parameter (optional) is a port number. By default, it is 80 for HTTP and 443 for HTTPS(SSL/TLS).
2525
3. Third parameter (optional) is a dotted-decimal IP address to bind the server. By default, TinyWeb binds to all available local addresses.
2626

0 commit comments

Comments
 (0)