Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
(_evhtp_path_new): If len is 0 we set full to "/", just like path.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamel committed Oct 6, 2014
1 parent 1be3a0f commit 7d277f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions evhtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -880,6 +880,8 @@ _evhtp_path_new(const char * data, size_t len) {

if (len != 0) {
req_path->full = strndup(data, len);
} else {
req_path->full = strdup("/");
}

req_path->path = path;
Expand Down

0 comments on commit 7d277f8

Please sign in to comment.