// Skip any spaces after the colon.
do {
++split;
- } while (split < lines[i].size() && lines[i][split] == ' ');
+ } while (split < lines[i].size() && (lines[i][split] == ' ' || lines[i][split] == '\t'));
string value(lines[i].begin() + split, lines[i].end());
const char *ptr = reinterpret_cast<char *>(
memmem(existing_data->data() + start_at, existing_data->size() - start_at,
"\r\n\r\n", 4));
- if (ptr == NULL) {
+ if (ptr == nullptr) {
return RP_NOT_FINISHED_YET;
}
if (ptr != existing_data->data() + existing_data->size() - 4) {