summaryrefslogtreecommitdiff
path: root/xs_curl.h
diff options
context:
space:
mode:
Diffstat (limited to 'xs_curl.h')
-rw-r--r--xs_curl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/xs_curl.h b/xs_curl.h
index 0609a08..ac543b1 100644
--- a/xs_curl.h
+++ b/xs_curl.h
@@ -200,6 +200,7 @@ xs_dict *xs_http_request(const char *method, const char *url,
200 return response; 200 return response;
201} 201}
202 202
203
203int xs_smtp_request(const char *url, const char *user, const char *pass, 204int xs_smtp_request(const char *url, const char *user, const char *pass,
204 const char *from, const char *to, const xs_str *body, 205 const char *from, const char *to, const xs_str *body,
205 int use_ssl) 206 int use_ssl)
@@ -209,7 +210,7 @@ int xs_smtp_request(const char *url, const char *user, const char *pass,
209 struct curl_slist *rcpt = NULL; 210 struct curl_slist *rcpt = NULL;
210 struct _payload_data pd = { 211 struct _payload_data pd = {
211 .data = (char *)body, 212 .data = (char *)body,
212 .size = xs_size(body), 213 .size = strlen(body),
213 .offset = 0 214 .offset = 0
214 }; 215 };
215 216