| 190 | } |
| 191 | |
| 192 | bool http_servlet::doUpload(request_t& req, response_t& res) |
| 193 | { |
| 194 | // ��δ����������ʱ����Ҫ�첽�� HTTP ���������� |
| 195 | if (content_length_ > read_length_) { |
| 196 | if (!upload(req, res)) { |
| 197 | return false; |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | // ��û�ж����ϴ������ݣ���Ҫ���أ��첽�ȴ��ɶ� |
| 202 | if (content_length_ > read_length_) { |
| 203 | return true; |
| 204 | } |
| 205 | |
| 206 | // ���Ѿ����� HTTP ����������ʱ����ʼ�����ϴ������� |
| 207 | bool ret = parse(req, res); |
| 208 | |
| 209 | // ������ϣ������� HTTP �Ự״̬���Ա��ڴ�����һ�� HTTP ���� |
| 210 | reset(); |
| 211 | acl::meter_time(__FUNCTION__, __LINE__, "end"); |
| 212 | return ret; |
| 213 | } |
| 214 | |
| 215 | #if 0 |
| 216 |
nothing calls this directly
no test coverage detected