Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed typos #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ScreenTask/frmMain.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions ScreenTask/frmMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private async void btnStartServer_Click(object sender, EventArgs e)
btnStartServer.Text = "Start Server";
isWorking = false;
isTakingScreenshots = false;
Log("Server Stoped.");
Log("Server Stopped.");
return;
}

Expand Down Expand Up @@ -92,7 +92,7 @@ private async Task StartServer()
//serv.Prefixes.Add("http://*:" + numPort.Value.ToString() + "/"); // Uncomment this to Allow Public IP Over Internet. [Commented for Security Reasons.]
serv.Prefixes.Add(url + "/");
serv.Start();
Log("Server Started Successfuly!");
Log("Server Started Successfully!");
Log("Private Network URL : " + url);
Log("Localhost URL : " + "http://localhost:" + numPort.Value.ToString() + "/");
while (isWorking)
Expand Down Expand Up @@ -173,7 +173,7 @@ private async Task StartServer()
rwl.ReleaseReaderLock();

var fileinfo = new FileInfo(page);
if (fileinfo.Extension == ".css") // important for IE -> Content-Type must be defiend for CSS files unless will ignored !!!
if (fileinfo.Extension == ".css") // important for IE -> Content-Type must be defiend for CSS files unless will be ignored !!!
ctx.Response.ContentType = "text/css";
else if (fileinfo.Extension == ".html" || fileinfo.Extension == ".htm")
ctx.Response.ContentType = "text/html"; // Important For Chrome Otherwise will display the HTML as plain text.
Expand Down Expand Up @@ -336,7 +336,7 @@ private void btnStopServer_Click(object sender, EventArgs e)
isTakingScreenshots = false;
btnStartServer.Enabled = true;
btnStopServer.Enabled = false;
Log("Server Stoped.");
Log("Server Stopped.");
}

private void cbPrivate_CheckedChanged(object sender, EventArgs e)
Expand Down