Skip to content

Commit

Permalink
lib-http: Change http_client_init() to use the global shared client c…
Browse files Browse the repository at this point in the history
…ontext

This is most likely what is usually wanted.
  • Loading branch information
sirainen committed Dec 15, 2017
1 parent a9f3703 commit 00ef907
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-http/http-client.c
Expand Up @@ -209,7 +209,7 @@ http_client_init_shared(struct http_client_context *cctx,
struct http_client *
http_client_init(const struct http_client_settings *set)
{
return http_client_init_shared(NULL, set);
return http_client_init_shared(http_client_get_global_context(), set);
}

void http_client_deinit(struct http_client **_client)
Expand Down
1 change: 1 addition & 0 deletions src/lib-http/http-client.h
Expand Up @@ -422,6 +422,7 @@ void http_client_request_start_tunnel(struct http_client_request *req,
* Client
*/

/* Create a client using the global shared client context. */
struct http_client *
http_client_init(const struct http_client_settings *set);
struct http_client *
Expand Down

0 comments on commit 00ef907

Please sign in to comment.