Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
dw5 authored May 9, 2024
1 parent dfee4f5 commit c6157ba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 4 additions & 1 deletion EXAMPLES.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,7 @@ function transfersh ($filename)
# Example usage
swscli(".\my-automatic-output.csv")
```
```

If CURL is available on Windows (should be by default in W10 and W11 unless your workplace blocks it), and Linux distros
curl.exe -v -X POST -F "csrf=notoken" -F "files=@$MyFile.csv;filename=$MyFile.csv" http://my-simpler-srv.local:8000/
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Simpler HTTP Server
Fork of simpler-http-server removing CSRF (for rare niche edge cases when it's a must)

# How it looks like?

Expand Down Expand Up @@ -29,7 +30,7 @@ FLAGS:
OPTIONS:
-a, --auth <auth> HTTP Basic Auth (username:password)
-b, --base-url <base-url> Base URL to prepend in directory indexes. For reverse proxying. This prefix is
supposed to be pre-stripped when reaching simple-http-server. [default: /]
supposed to be pre-stripped when reaching simpler-http-server. [default: /]
--cert <cert> TLS/SSL certificate (pkcs#12 format)
--certpass <certpass> TLS/SSL certificate password
-c, --compress <compress>... Enable file compression: gzip/deflate
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ fn main() {
.long("base-url")
.default_value("/")
.takes_value(true)
.help("Base URL to prepend in directory indexes. For reverse proxying. This prefix is supposed to be pre-stripped when reaching simple-http-server."))
.help("Base URL to prepend in directory indexes. For reverse proxying. This prefix is supposed to be pre-stripped when reaching simpler-http-server."))
.get_matches();

let root = matches
Expand Down Expand Up @@ -382,7 +382,7 @@ fn main() {
let rv = if cert.is_some() {
printer
.println_err(
"{}: TLS support is not enabled during compilation of simple-http-server",
"{}: TLS support is not enabled during compilation of simpler-http-server",
&[("ERROR", &Some(build_spec(Some(Color::Red), true)))],
)
.unwrap();
Expand Down

0 comments on commit c6157ba

Please sign in to comment.