summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
Diffstat (limited to 'README')
-rw-r--r--README6
1 files changed, 5 insertions, 1 deletions
diff --git a/README b/README
index add015a..389fd23 100644
--- a/README
+++ b/README
@@ -3,7 +3,7 @@ httpserv
httpserv is a small server to serve up a directory over HTTP. It's usage is:
- httpserve [-p port] [-d dir]
+ httpserve [-p port] [-d dir] [-a]
By default it listens on port 80 and serves the current directory. To use
port 80 on UNIX/Linux you'll have to run as root to have access to such a low
@@ -14,3 +14,7 @@ the directory and links to download each one.
For security reasons sub directories aren't supported. The basname of the
passed file is used so that it must exist in the directory being served.
+
+By specifying the -a flag it will allow uploads via a POST. This is a basic
+implmentation where it ignores the content-type and just dumps the body of the
+request to the passed file. It will not allow files to be overwritten.