summaryrefslogtreecommitdiff
path: root/src/c/fastcgi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c/fastcgi.c')
-rw-r--r--src/c/fastcgi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c/fastcgi.c b/src/c/fastcgi.c
index 1498580b..ec1afb8e 100644
--- a/src/c/fastcgi.c
+++ b/src/c/fastcgi.c
@@ -221,7 +221,7 @@ static char *get_header(void *data, const char *h) {
strcpy(hs->uppercased, "HTTP_");
for (s = hs->uppercased+5; *h; ++h)
- *s++ = *h == '-' ? '_' : toupper(*h);
+ *s++ = *h == '-' ? '_' : toupper((int)*h);
*s = 0;
if (!strcasecmp(saved_h, "Content-length")