aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--http.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/http.c b/http.c
index e9b50ac..c3ff25a 100644
--- a/http.c
+++ b/http.c
@@ -4,7 +4,6 @@
#include <dynstr.h>
#include <sys/types.h>
#include <unistd.h>
-#include <ctype.h>
#include <errno.h>
#include <inttypes.h>
#include <stdbool.h>
@@ -956,7 +955,7 @@ static int get_boundary(const char *bnd, char *const buf, const size_t n)
__func__, res, n);
return 1;
}
- else if (isspace(buf[res - 1]))
+ else if (buf[res - 1] == ' ')
{
fprintf(stderr, "%s: boundary ends with whitespace character: %s\n",
__func__, buf);