update libevhtp patch for seafile server
still doesn't build
This commit is contained in:
parent
53b07d930e
commit
da79a0f49c
|
@ -29,6 +29,17 @@ Subject: [PATCH] Update upload-file.c
|
||||||
|
|
||||||
--- a/server/upload-file.c 2019-12-26 00:43:14.743019721 +0100
|
--- a/server/upload-file.c 2019-12-26 00:43:14.743019721 +0100
|
||||||
+++ b/server/upload-file.new 2019-12-26 01:05:11.166580920 +0100
|
+++ b/server/upload-file.new 2019-12-26 01:05:11.166580920 +0100
|
||||||
|
@@ -2607,8 +2607,8 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Set up per-request hooks, so that we can read file data piece by piece. */
|
||||||
|
- evhtp_set_hook (&req->hooks, evhtp_hook_on_read, upload_read_cb, fsm);
|
||||||
|
- evhtp_set_hook (&req->hooks, evhtp_hook_on_request_fini, upload_finish_cb, fsm);
|
||||||
|
+ evhtp_callback_set_hook (req, evhtp_hook_on_read, upload_read_cb, fsm);
|
||||||
|
+ evhtp_callback_set_hook (req, evhtp_hook_on_request_fini, upload_finish_cb, fsm);
|
||||||
|
/* Set arg for upload_cb or update_cb. */
|
||||||
|
req->cbarg = fsm;
|
||||||
|
|
||||||
@@ -2724,32 +2724,32 @@
|
@@ -2724,32 +2724,32 @@
|
||||||
g_free (cluster_shared_dir);
|
g_free (cluster_shared_dir);
|
||||||
|
|
||||||
|
@ -71,6 +82,7 @@ Subject: [PATCH] Update upload-file.c
|
||||||
|
|
||||||
evhtp_set_regex_cb (htp, "^/upload_progress.*", upload_progress_cb, NULL);
|
evhtp_set_regex_cb (htp, "^/upload_progress.*", upload_progress_cb, NULL);
|
||||||
|
|
||||||
|
|
||||||
From b6c41aae74f1eb285a033125f4a5af578c8efbb6 Mon Sep 17 00:00:00 2001
|
From b6c41aae74f1eb285a033125f4a5af578c8efbb6 Mon Sep 17 00:00:00 2001
|
||||||
From: Ultima1252 <ultima1252@gmail.com>
|
From: Ultima1252 <ultima1252@gmail.com>
|
||||||
Date: Mon, 15 Jan 2018 17:13:57 -0800
|
Date: Mon, 15 Jan 2018 17:13:57 -0800
|
||||||
|
|
Loading…
Reference in a new issue