summaryrefslogtreecommitdiff
path: root/xs_fcgi.h
diff options
context:
space:
mode:
Diffstat (limited to 'xs_fcgi.h')
-rw-r--r--xs_fcgi.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xs_fcgi.h b/xs_fcgi.h
index 870e3e8..0b53dac 100644
--- a/xs_fcgi.h
+++ b/xs_fcgi.h
@@ -173,6 +173,9 @@ xs_dict *xs_fcgi_request(FILE *f, xs_str **payload, int *p_size, int *fcgi_id)
173 xs *v = xs_str_new_sz((char *)&buf[offset], vsz); 173 xs *v = xs_str_new_sz((char *)&buf[offset], vsz);
174 offset += vsz; 174 offset += vsz;
175 175
176 if (!xs_is_string(k) || !xs_is_string(v))
177 continue;
178
176 cgi_vars = xs_dict_append(cgi_vars, k, v); 179 cgi_vars = xs_dict_append(cgi_vars, k, v);
177 180
178 if (strcmp(k, "REQUEST_METHOD") == 0) 181 if (strcmp(k, "REQUEST_METHOD") == 0)