File tree
Expand file treeCollapse file tree1 file changed
+1
-4
lines changed Expand file treeCollapse file tree1 file changed
+1
-4
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -186,11 +186,8 @@ bool WebServer::_parseRequest(NetworkClient &client) {
|
186 | 186 | _currentHandler->raw(*this, _currentUri, *_currentRaw);
|
187 | 187 | _currentRaw->status = RAW_WRITE;
|
188 | 188 |
|
189 |
| -while (1) { |
| 189 | +while (_currentRaw->totalSize < _clientContentLength) { |
190 | 190 | size_t read_len = std::min(_clientContentLength - _currentRaw->totalSize, (size_t) HTTP_RAW_BUFLEN);
|
191 |
| -if (read_len == 0) { |
192 |
| -break; |
193 |
| -} |
194 | 191 | _currentRaw->currentSize = client.readBytes(_currentRaw->buf, read_len);
|
195 | 192 | _currentRaw->totalSize += _currentRaw->currentSize;
|
196 | 193 | if (_currentRaw->currentSize == 0) {
|
|
You can’t perform that action at this time.
0 commit comments