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

Commit c6157ba

Browse files
authored
docs
1 parent dfee4f5 commit c6157ba

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

EXAMPLES.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,7 @@ function transfersh ($filename)
3939
4040
# Example usage
4141
swscli(".\my-automatic-output.csv")
42-
```
42+
```
43+
44+
If CURL is available on Windows (should be by default in W10 and W11 unless your workplace blocks it), and Linux distros
45+
curl.exe -v -X POST -F "csrf=notoken" -F "files=@$MyFile.csv;filename=$MyFile.csv" http://my-simpler-srv.local:8000/

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Simpler HTTP Server
2+
Fork of simpler-http-server removing CSRF (for rare niche edge cases when it's a must)
23

34
# How it looks like?
45

@@ -29,7 +30,7 @@ FLAGS:
2930
OPTIONS:
3031
-a, --auth <auth> HTTP Basic Auth (username:password)
3132
-b, --base-url <base-url> Base URL to prepend in directory indexes. For reverse proxying. This prefix is
32-
supposed to be pre-stripped when reaching simple-http-server. [default: /]
33+
supposed to be pre-stripped when reaching simpler-http-server. [default: /]
3334
--cert <cert> TLS/SSL certificate (pkcs#12 format)
3435
--certpass <certpass> TLS/SSL certificate password
3536
-c, --compress <compress>... Enable file compression: gzip/deflate

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ fn main() {
212212
.long("base-url")
213213
.default_value("/")
214214
.takes_value(true)
215-
.help("Base URL to prepend in directory indexes. For reverse proxying. This prefix is supposed to be pre-stripped when reaching simple-http-server."))
215+
.help("Base URL to prepend in directory indexes. For reverse proxying. This prefix is supposed to be pre-stripped when reaching simpler-http-server."))
216216
.get_matches();
217217

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

0 commit comments

Comments
 (0)