- typos
authorMichael Wallner <mike@php.net>
Tue, 31 May 2005 19:49:18 +0000 (19:49 +0000)
committerMichael Wallner <mike@php.net>
Tue, 31 May 2005 19:49:18 +0000 (19:49 +0000)
http_api.c
http_request_api.c

index e53a887e3d430ca7e06d35af6e5d75f7b99a700e..18b14e2cf1265803f1068167e21f9169f6dfb7ce 100644 (file)
@@ -164,15 +164,13 @@ PHP_HTTP_API const char *_http_chunked_decode(const char *encoded, size_t encode
                        } else {
                                efree(*decoded);
                                if (no_crlf) {
-                                       http_error_ex(E_WARNING, HTTP_E_PARSE,
-                                               "Invalid character (expected 0x0D 0x0A; got: 0x%x 0x%x)", *n_ptr, *(n_ptr + 1));
+                                       http_error_ex(E_WARNING, HTTP_E_PARSE, "Invalid character (expected 0x0D 0x0A; got: 0x%x 0x%x)", *n_ptr, *(n_ptr + 1));
                                } else {
                                        char *error = estrndup(n_ptr, strcspn(n_ptr, "\r\n \0"));
                                        http_error_ex(E_WARNING, HTTP_E_PARSE, "Invalid chunk size: '%s' at pos %d", error, n_ptr - encoded);
                                        efree(error);
-                                       efree(decoded);
                                }
-                               
+
                                return NULL;
                        }
                } else {
index ca626877c20402f97e732823c40c9110a2367d31..534542fd4a31d59f7d3cc33349d5d87468cea6da 100644 (file)
@@ -514,7 +514,7 @@ PHP_HTTP_API STATUS _http_request_ex(CURL *ch, http_request_method meth, const c
                        break;
 
                        default:
-                               http_error_ex(E_WARNING, HTTP_E_CURL, "Unkown request body type: %d", body->type);
+                               http_error_ex(E_WARNING, HTTP_E_CURL, "Unknown request body type: %d", body->type);
                                status = FAILURE;
                                goto http_request_end;
                        break;
@@ -746,7 +746,7 @@ static size_t http_curl_read_callback(void *data, size_t len, size_t n, void *s)
 {
        static char *offset = NULL, *original = NULL;
        http_request_body *body = (http_request_body *) s;
-       
+
        switch (body->type)
        {
                case HTTP_REQUEST_BODY_UPLOADFILE: