Skip to content

Commit

Permalink
Update gateway.c
Browse files Browse the repository at this point in the history
  • Loading branch information
liudf0716 committed Dec 21, 2023
1 parent bc89269 commit 1c17db9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gateway.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,11 @@ http_redir_loop(s_config *config)
http = evhttp_new(base);
if (!http) termination_handler(0);

evhttp_set_allowed_methods(http,
EVHTTP_REQ_GET |
EVHTTP_REQ_POST |
EVHTTP_REQ_OPTIONS);

struct wd_request_context *request_ctx = wd_request_context_new(
base, ssl, get_auth_server()->authserv_use_ssl);
if (!request_ctx) termination_handler(0);
Expand Down

0 comments on commit 1c17db9

Please sign in to comment.