From 3fae71eb51f3b0f09cf61639991a44051da8c0bc Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 12 Apr 2005 20:16:54 +0000 Subject: [PATCH] - renamed response.status to response.code --- http_message_api.c | 4 ++-- php_http_message_api.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/http_message_api.c b/http_message_api.c index 1e6ac3a..04564af 100644 --- a/http_message_api.c +++ b/http_message_api.c @@ -99,7 +99,7 @@ PHP_HTTP_API void _http_message_parse_headers_callback(void **message, char *htt 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."))) { @@ -135,7 +135,7 @@ PHP_HTTP_API void _http_message_tostring(http_message *msg, char **string, size_ 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; } diff --git a/php_http_message_api.h b/php_http_message_api.h index 13bf62e..78355a6 100644 --- a/php_http_message_api.h +++ b/php_http_message_api.h @@ -54,7 +54,7 @@ struct _http_message { struct { float http_version; - int status; + int code; } response; } info; -- 2.30.2