| 695 | #ifdef HTTP_SUPER_LOG |
| 696 | LOG_DEBUG(Core, "{}", req); |
| 697 | #endif |
| 698 | ::close(sock); |
| 699 | ptr = endPtr = nullptr; |
| 700 | return; |
| 701 | } |
| 702 | |
| 703 | // prepare the data-array: |
| 704 | int totalLen = atoi(port + 17); |
| 705 | endPtr += 4; |
| 706 | beginPtr = (char*)malloc(totalLen); |
| 707 | memcpy(beginPtr, endPtr, ptr - endPtr); |
| 708 | ptr = beginPtr + (ptr - endPtr); |
| 709 | endPtr = beginPtr + totalLen; |