Mercurial > hg > orthanc
annotate OrthancFramework/Resources/Patches/civetweb-1.13.patch @ 4411:1d93700f5e23
typo
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sun, 27 Dec 2020 11:31:50 +0100 |
parents | 5227df2a650f |
children |
rev | line source |
---|---|
4259
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
1 diff -urEb civetweb-1.13.orig/include/civetweb.h civetweb-1.13/include/civetweb.h |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
2 --- civetweb-1.13.orig/include/civetweb.h 2020-10-27 13:11:13.870113645 +0100 |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
3 +++ civetweb-1.13/include/civetweb.h 2020-10-27 13:12:33.997986337 +0100 |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
4 @@ -1695,6 +1695,9 @@ |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
5 struct mg_error_data *error); |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
6 #endif |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
7 |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
8 +// Added by SJ |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
9 +CIVETWEB_API void mg_disable_keep_alive(struct mg_connection *conn); |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
10 + |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
11 #ifdef __cplusplus |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
12 } |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
13 #endif /* __cplusplus */ |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
14 diff -urEb civetweb-1.13.orig/src/civetweb.c civetweb-1.13/src/civetweb.c |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
15 --- civetweb-1.13.orig/src/civetweb.c 2020-10-27 13:11:13.870113645 +0100 |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
16 +++ civetweb-1.13/src/civetweb.c 2020-10-27 13:12:14.534017414 +0100 |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
17 @@ -10876,6 +10876,11 @@ |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
18 /* + MicroSoft extensions |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
19 * https://msdn.microsoft.com/en-us/library/aa142917.aspx */ |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
20 |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
21 + /* Added by SJ, for write access to WebDAV on Windows >= 7 */ |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
22 + {"LOCK", 1, 1, 0, 0, 0}, |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
23 + {"UNLOCK", 1, 0, 0, 0, 0}, |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
24 + {"PROPPATCH", 1, 1, 0, 0, 0}, |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
25 + |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
26 /* REPORT method (RFC 3253) */ |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
27 {"REPORT", 1, 1, 1, 1, 1}, |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
28 /* REPORT method only allowed for CGI/Lua/LSP and callbacks. */ |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
29 @@ -21287,4 +21292,12 @@ |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
30 } |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
31 |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
32 |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
33 +// Added by SJ |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
34 +void mg_disable_keep_alive(struct mg_connection *conn) |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
35 +{ |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
36 + if (conn != NULL) { |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
37 + conn->must_close = 1; |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
38 + } |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
39 +} |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
40 + |
5227df2a650f
upgrade to civetweb 1.13
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff
changeset
|
41 /* End of civetweb.c */ |