| 298 | } |
| 299 | |
| 300 | acl_int64 HttpServletRequest::getContentLength(void) const |
| 301 | { |
| 302 | if (cgi_mode_) { |
| 303 | const char* ptr = acl_getenv("CONTENT_LENGTH"); |
| 304 | if (ptr == NULL) { |
| 305 | return -1; |
| 306 | } |
| 307 | return acl_atoui64(ptr); |
| 308 | } |
| 309 | if (client_ == NULL) { |
| 310 | return -1; |
| 311 | } |
| 312 | return client_->body_length(); |
| 313 | } |
| 314 | |
| 315 | bool HttpServletRequest::getRange(http_off_t& range_from, http_off_t& range_to) |
| 316 | { |
no test coverage detected