diff --git a/TODO.txt b/TODO.txt index 34b6d24..9f1ec91 100644 --- a/TODO.txt +++ b/TODO.txt @@ -43,7 +43,7 @@ Milestone: v0.3.0 - If tls is given, it can be null, false, or an object with cert and key [x] Pass TLS certs and keys into HttpServer [x] Debug OpenSSL -[ ] Replace all usages of curl with http +[x] Replace all usages of curl with http [ ] Proper HTTP request router - Support regex matching [ ] Token permissions diff --git a/src/Stream.c b/src/Stream.c index fba7f22..7241bf3 100644 --- a/src/Stream.c +++ b/src/Stream.c @@ -522,7 +522,7 @@ StreamGets(Stream * stream, char *str, int size) } off_t -StreamSeek(Stream *stream, off_t offset, int whence) +StreamSeek(Stream * stream, off_t offset, int whence) { off_t result; diff --git a/src/Tls/TlsOpenSSL.c b/src/Tls/TlsOpenSSL.c index fac7741..03c03ed 100644 --- a/src/Tls/TlsOpenSSL.c +++ b/src/Tls/TlsOpenSSL.c @@ -42,8 +42,9 @@ typedef struct OpenSSLCookie static char * SSLErrorString(int err) { - switch (err) { - case SSL_ERROR_NONE: + switch (err) + { + case SSL_ERROR_NONE: return "No error."; case SSL_ERROR_ZERO_RETURN: return "The TLS/SSL connection has been closed."; diff --git a/src/Util.c b/src/Util.c index 8435a91..71297ef 100644 --- a/src/Util.c +++ b/src/Util.c @@ -300,4 +300,3 @@ UtilGetLine(char **linePtr, size_t * n, Stream * stream) { return UtilGetDelim(linePtr, n, '\n', stream); } -