Skip to content

Commit

Permalink
fix: add char string empty judge
Browse files Browse the repository at this point in the history
  • Loading branch information
helintongh committed Feb 28, 2023
1 parent 8746ccf commit b4d5a5d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/cinatra/http_parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ class http_parser {
}

bool iequal(const char *s, size_t l, const char *t) const {
if (s == nullptr || t == nullptr)
return false;
if (strlen(t) != l)
return false;

Expand Down

0 comments on commit b4d5a5d

Please sign in to comment.