comparison OrthancFramework/Resources/Patches/civetweb-1.12.patch @ 4228:c8c0bbaaace3

write access to webdav
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 06 Oct 2020 12:45:11 +0200
parents d25f4c0fa160
children
comparison
equal deleted inserted replaced
4227:7fff7e683d65 4228:c8c0bbaaace3
1 diff -urEb civetweb-1.12.orig/include/civetweb.h civetweb-1.12/include/civetweb.h 1 diff -urEb civetweb-1.12.orig/include/civetweb.h civetweb-1.12/include/civetweb.h
2 --- civetweb-1.12.orig/include/civetweb.h 2020-04-02 12:07:20.727054140 +0200 2 --- civetweb-1.12.orig/include/civetweb.h 2020-10-06 12:39:10.634902843 +0200
3 +++ civetweb-1.12/include/civetweb.h 2020-04-02 12:07:42.734996559 +0200 3 +++ civetweb-1.12/include/civetweb.h 2020-10-06 12:39:30.630872089 +0200
4 @@ -1614,6 +1614,9 @@ 4 @@ -1614,6 +1614,9 @@
5 struct mg_error_data *error); 5 struct mg_error_data *error);
6 #endif 6 #endif
7 7
8 +// Added by SJ 8 +// Added by SJ
10 + 10 +
11 #ifdef __cplusplus 11 #ifdef __cplusplus
12 } 12 }
13 #endif /* __cplusplus */ 13 #endif /* __cplusplus */
14 diff -urEb civetweb-1.12.orig/src/civetweb.c civetweb-1.12/src/civetweb.c 14 diff -urEb civetweb-1.12.orig/src/civetweb.c civetweb-1.12/src/civetweb.c
15 --- civetweb-1.12.orig/src/civetweb.c 2020-04-02 12:07:20.731054129 +0200 15 --- civetweb-1.12.orig/src/civetweb.c 2020-10-06 12:39:10.638902837 +0200
16 +++ civetweb-1.12/src/civetweb.c 2020-04-02 12:07:52.250971600 +0200 16 +++ civetweb-1.12/src/civetweb.c 2020-10-06 12:41:40.110671929 +0200
17 @@ -20704,5 +20704,12 @@ 17 @@ -10525,6 +10525,11 @@
18 /* + MicroSoft extensions
19 * https://msdn.microsoft.com/en-us/library/aa142917.aspx */
20
21 + /* Added by SJ, for write access to WebDAV on Windows >= 7 */
22 + {"LOCK", 1, 1, 0, 0, 0},
23 + {"UNLOCK", 1, 0, 0, 0, 0},
24 + {"PROPPATCH", 1, 1, 0, 0, 0},
25 +
26 /* REPORT method (RFC 3253) */
27 {"REPORT", 1, 1, 1, 1, 1},
28 /* REPORT method only allowed for CGI/Lua/LSP and callbacks. */
29 @@ -20704,5 +20709,12 @@
18 return 1; 30 return 1;
19 } 31 }
20 32
21 +// Added by SJ 33 +// Added by SJ
22 +void mg_disable_keep_alive(struct mg_connection *conn) 34 +void mg_disable_keep_alive(struct mg_connection *conn)