Mercurial > urweb
comparison src/c/request.c @ 1386:64724ef86149
Basis.currentUrlHasPost
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Thu, 06 Jan 2011 14:45:52 -0500 |
parents | 76514ddf3a97 |
children | e65082d76d26 |
comparison
equal
deleted
inserted
replaced
1385:449a12b82db7 | 1386:64724ef86149 |
---|---|
228 log_error(logger_data, "Request doesn't contain all POST data (according to Content-Length)\n"); | 228 log_error(logger_data, "Request doesn't contain all POST data (according to Content-Length)\n"); |
229 return FAILED; | 229 return FAILED; |
230 } | 230 } |
231 | 231 |
232 is_post = 1; | 232 is_post = 1; |
233 uw_isPost(ctx); | |
233 | 234 |
234 clen_s = uw_Basis_requestHeader(ctx, "Content-type"); | 235 clen_s = uw_Basis_requestHeader(ctx, "Content-type"); |
235 if (clen_s && !strncasecmp(clen_s, "multipart/form-data", 19)) { | 236 if (clen_s && !strncasecmp(clen_s, "multipart/form-data", 19)) { |
236 if (strncasecmp(clen_s + 19, "; boundary=", 11)) { | 237 if (strncasecmp(clen_s + 19, "; boundary=", 11)) { |
237 log_error(logger_data, "Bad multipart boundary spec"); | 238 log_error(logger_data, "Bad multipart boundary spec"); |