From 57c9504725f1d0b5f0100c0fbe7a41c8ead4763e Mon Sep 17 00:00:00 2001 From: ry023 Date: Fri, 1 Mar 2019 14:58:51 +0900 Subject: [PATCH] set res->status_code --- stns.c | 1 + 1 file changed, 1 insertion(+) diff --git a/stns.c b/stns.c index a0897b9..d27e538 100644 --- a/stns.c +++ b/stns.c @@ -294,6 +294,7 @@ static CURLcode inner_http_request(stns_conf_t *c, char *path, stns_response_t * syslog(LOG_ERR, "%s(stns)[L%d] http request failed: %s", __func__, __LINE__, curl_easy_strerror(result)); res->data = NULL; res->size = 0; + res->status_code = code; result = CURLE_HTTP_RETURNED_ERROR; }