From 9ee138af54714e0fba18766313d8a738b52196fe Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 31 May 2005 19:49:18 +0000 Subject: [PATCH] - typos --- http_api.c | 6 ++---- http_request_api.c | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/http_api.c b/http_api.c index e53a887..18b14e2 100644 --- a/http_api.c +++ b/http_api.c @@ -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 { diff --git a/http_request_api.c b/http_request_api.c index ca62687..534542f 100644 --- a/http_request_api.c +++ b/http_request_api.c @@ -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: -- 2.30.2