1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-09 11:18:54 +00:00

Use post and add ip addr and user agent (#719)

* Use post and add ip addr and user agent

* Go add ip addr and user agent

* Adjust gc unit test

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
This commit is contained in:
feiniks
2024-11-25 15:59:24 +08:00
committed by GitHub
parent 516eac3304
commit aaa7819c34
8 changed files with 118 additions and 42 deletions

View File

@@ -51,9 +51,11 @@ http_tx_manager_get_nickname (const char *modifier);
SeafileShareLinkInfo *
http_tx_manager_query_share_link_info (const char *token, const char *cookie, const char *type,
const char *ip_addr, const char *user_agent,
int *status, char **err_msg);
int
http_tx_manager_check_file_access (const char *repo_id, const char *token, const char *cookie,
const char *path, const char *op, char **user);
const char *path, const char *op, const char *ip_addr,
const char *user_agent, char **user);
#endif