Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
dimkr committed Apr 6, 2024
1 parent 6a6dde1 commit 56f9066
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion titan.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ static int titan_request(URL *url, SSL *ssl, void *p) {
int len, err;

len = snprintf(buffer, sizeof(buffer), params->token == NULL || *params->token == '\0' ? "%s;mime=%s;size=%zu\r\n" : "%s;mime=%s;size=%zu;token=%s\r\n", url->url, params->mime, params->size, params->token);
puts(buffer);
if ((err = SSL_get_error(ssl, SSL_write(ssl, buffer, len >= (int)sizeof(buffer) ? (int)sizeof(buffer) - 1 : len))) != SSL_ERROR_NONE) return err;

return params->size > 0 ? SSL_get_error(ssl, SSL_write(ssl, params->body, params->size)) : SSL_ERROR_NONE;
Expand Down

0 comments on commit 56f9066

Please sign in to comment.