Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
http: fix locking for options cmd, fixes #3950
  • Loading branch information
perexg committed Aug 25, 2016
1 parent 54715ff commit 65dfd15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/http.c
Expand Up @@ -967,8 +967,10 @@ dump_request(http_connection_t *hc)
static int
http_cmd_options(http_connection_t *hc)
{
pthread_mutex_lock(&hc->hc_fd_lock);
http_send_header(hc, HTTP_STATUS_OK, NULL, INT64_MIN,
NULL, NULL, -1, 0, NULL, NULL);
pthread_mutex_unlock(&hc->hc_fd_lock);
return 0;
}

Expand Down

0 comments on commit 65dfd15

Please sign in to comment.