src/server/daemon/protocol.c

branch
webdav
changeset 235
4990147c58d0
parent 141
ff311b63c3af
child 251
f727a21497bb
--- a/src/server/daemon/protocol.c	Sat Jan 18 16:48:03 2020 +0100
+++ b/src/server/daemon/protocol.c	Sun Jan 19 09:01:39 2020 +0100
@@ -377,6 +377,16 @@
     return 0;
 }
 
+int http_send_continue(Session *sn) {
+    NSAPISession *s = (NSAPISession*)sn;
+    sstr_t msg = S("HTTP/1.1 100 Continue\r\n\r\n");
+    int w = s->connection->write(s->connection, msg.ptr, msg.length);
+    if(w != msg.length) {
+        return 1;
+    }
+    return 0;
+}
+
 int request_header(char *name, char **value, Session *sn, Request *rq) {
     const pb_key *key = pblock_key(name);
     pb_param *pp = pblock_findkey(key, rq->headers);

mercurial