summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMax Christian Pohle2021-11-16 03:35:13 +0100
committerMax Christian Pohle2021-11-16 03:35:13 +0100
commite2ca5eb8dde31ea31b7fa1014d087829e4146bac (patch)
tree79ddc9068ce9add59f5903d127f16d2c03314f23 /Makefile
parent89944e70b8e100e39ef65190ad1816dafde326eb (diff)
downloadohmycgi-e2ca5eb8dde31ea31b7fa1014d087829e4146bac.tar.bz2
ohmycgi-e2ca5eb8dde31ea31b7fa1014d087829e4146bac.zip
Basic functionality is finally there
We can: * skip HTTP status header * read the HTTP headers * find a boundary of multipart form data and if there was a boundary * parse further 'chunks', separated by this boundary, each with a HTTP header All of that was tested with text fields and binary data. This server implementation is insecure. Please do not use it for anything connected to the internet. It is simple though and can serve local daemons. TODO: callback to a parser function.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1f8a372
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
1
2test: main
3 ./main
4
5main: clean
6
7clean:
8 rm -f ./main
9
10%:
11 $(CC) -pthread -g -o $@ $@.c
12
..