- renamed response.status to response.code
authorMichael Wallner <mike@php.net>
Tue, 12 Apr 2005 20:16:54 +0000 (20:16 +0000)
committerMichael Wallner <mike@php.net>
Tue, 12 Apr 2005 20:16:54 +0000 (20:16 +0000)
http_message_api.c
php_http_message_api.h

index 1e6ac3a2a8e6479ffcb2398867df0a4016ee661e..04564afc7ee39c2b21856ff2e79e1cc8bfaef0a8 100644 (file)
@@ -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;
        }
 
index 13bf62ee5f0a9a7da85517a778e2c8a40bfc334c..78355a63c47f4bea0b7b14c617b68cf56ab9afaf 100644 (file)
@@ -54,7 +54,7 @@ struct _http_message {
 
                struct {
                        float http_version;
-                       int status;
+                       int code;
                } response;
 
        } info;