diff options
| -rw-r--r-- | xs_fcgi.h | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -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) |