if (!strncmp(http_line, "HTTP/1.", lenof("HTTP/1."))) {
new->type = HTTP_MSG_RESPONSE;
new->info.response.http_version = atof(http_line + lenof("HTTP/"));
- new->info.response.status = atoi(http_line + lenof("HTTP/1.1 "));
+ new->info.response.code = atoi(http_line + lenof("HTTP/1.1 "));
} else
// request
if (!strncmp(http_line + line_length - lenof("HTTP/1.1"), "HTTP/1.", lenof("HTTP/1."))) {
case HTTP_MSG_RESPONSE:
phpstr_appendf(&str, "HTTP/%1.1f %d" HTTP_CRLF,
msg->info.response.http_version,
- msg->info.response.status);
+ msg->info.response.code);
break;
}