diff options
| author | fengweihao <[email protected]> | 2023-08-09 10:14:30 +0800 |
|---|---|---|
| committer | fengweihao <[email protected]> | 2023-08-09 10:14:30 +0800 |
| commit | 80f4909fe3a4878801611e9888136ac747798996 (patch) | |
| tree | c44386f828529d5a47e97ee09298cf43331b5c1a /platform/src/key_keeper.cpp | |
| parent | bc39cd0706dceea2a5ea875d6c7898377024650f (diff) | |
修复Keeper构建的http保活请求格式错误
Diffstat (limited to 'platform/src/key_keeper.cpp')
| -rw-r--r-- | platform/src/key_keeper.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/src/key_keeper.cpp b/platform/src/key_keeper.cpp index cd622fc..5e77d12 100644 --- a/platform/src/key_keeper.cpp +++ b/platform/src/key_keeper.cpp @@ -512,8 +512,8 @@ static int health_check(struct key_keeper *keeper) "Host: %s:%d\r\n" "User-Agent: curl/7.47.0\r\n" "Accept: */*\r\n" - "Content-Length: %d\r\n\r\n" - "%s\r\n"; + "Content-Length: %d\r\n" + "\r\n%s"; sprintf(req_buff, post_head, "/ca?health_check=1", keeper->cert_store_host, keeper->cert_store_port, strlen("health check"), "health check"); int sockfd = socket(AF_INET, SOCK_STREAM, 0); |
