Skip to content

Commit

Permalink
Fix doc format
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <jianhuizhao329@gmail.com>
  • Loading branch information
Jianhui Zhao committed Dec 6, 2017
1 parent 2ab93c9 commit 93705e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/include/internal.h
Expand Up @@ -77,9 +77,9 @@ struct uh_request {
struct uh_header header[UH_HEADER_NUM_LIMIT];
};

struct uh_connection {
struct uh_connection {
int sock;
#if (UHTTP_SSL_ENABLED)
#if (UHTTP_SSL_ENABLED)
void *ssl;
#endif
unsigned char flags;
Expand Down
3 changes: 1 addition & 2 deletions src/include/uhttp/uhttp.h
Expand Up @@ -116,12 +116,11 @@ struct uh_str *uh_get_path(struct uh_connection *con);
struct uh_str *uh_get_query(struct uh_connection *con);
struct uh_str uh_get_var(struct uh_connection *con, const char *name);
struct uh_str *uh_get_header(struct uh_connection *con, const char *name);
int uh_get_con_sock(struct uh_connection *con);

/* Unescapes strings like '%7B1,%202,%203%7D' would become '{1, 2, 3}' */
int uh_unescape(const char *str, int len, char *out, int olen);

int uh_get_con_sock(struct uh_connection *con);

#if (UHTTP_SSL_ENABLED)
/* Init ssl for the server */
int uh_ssl_init(struct uh_server *srv, const char *cert, const char *key);
Expand Down

0 comments on commit 93705e0

Please sign in to comment.