Mercurial > hg > orthanc
comparison OrthancFramework/Resources/Patches/civetweb-1.13.patch @ 4259:5227df2a650f
upgrade to civetweb 1.13
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 27 Oct 2020 13:29:23 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
4258:6f5d4bfb2c90 | 4259:5227df2a650f |
---|---|
1 diff -urEb civetweb-1.13.orig/include/civetweb.h civetweb-1.13/include/civetweb.h | |
2 --- civetweb-1.13.orig/include/civetweb.h 2020-10-27 13:11:13.870113645 +0100 | |
3 +++ civetweb-1.13/include/civetweb.h 2020-10-27 13:12:33.997986337 +0100 | |
4 @@ -1695,6 +1695,9 @@ | |
5 struct mg_error_data *error); | |
6 #endif | |
7 | |
8 +// Added by SJ | |
9 +CIVETWEB_API void mg_disable_keep_alive(struct mg_connection *conn); | |
10 + | |
11 #ifdef __cplusplus | |
12 } | |
13 #endif /* __cplusplus */ | |
14 diff -urEb civetweb-1.13.orig/src/civetweb.c civetweb-1.13/src/civetweb.c | |
15 --- civetweb-1.13.orig/src/civetweb.c 2020-10-27 13:11:13.870113645 +0100 | |
16 +++ civetweb-1.13/src/civetweb.c 2020-10-27 13:12:14.534017414 +0100 | |
17 @@ -10876,6 +10876,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 @@ -21287,4 +21292,12 @@ | |
30 } | |
31 | |
32 | |
33 +// Added by SJ | |
34 +void mg_disable_keep_alive(struct mg_connection *conn) | |
35 +{ | |
36 + if (conn != NULL) { | |
37 + conn->must_close = 1; | |
38 + } | |
39 +} | |
40 + | |
41 /* End of civetweb.c */ |