HttpEvent http_event(this);
const char* key = (source_id == SRC_CLIENT) ?
- HTTP_REQUEST_HEADER_EVENT_KEY : HTTP_RESPONSE_HEADER_EVENT_KEY;
+ HTTP_REQUEST_HEADER_EVENT_KEY : HTTP_RESPONSE_HEADER_EVENT_KEY;
DataBus::publish(key, http_event, flow);
}
return;
}
- if ((source_id == SRC_SERVER) && ((status_code_num <= 199) || (status_code_num == 204) ||
+ if ((source_id == SRC_SERVER) &&
+ ((100 <= status_code_num && status_code_num <= 199) || (status_code_num == 204) ||
(status_code_num == 304)))
{
// No body allowed by RFC for these response codes. The message is over regardless of the
HttpMsgSection::print_section_wrapup(output);
}
#endif
-
// values use the first one.
int64_t norm_decimal_integer(const Field& input)
{
- assert(input.length() > 0);
+ if ( input.length() <= 0 )
+ return STAT_PROBLEMATIC;
// Limited to 18 decimal digits, not including leading zeros, to fit comfortably into int64_t
int64_t total = 0;
int non_leading_zeros = 0;
last_start++;
last_token.set(input.length() - (last_start - input.start()), last_start);
}
-