X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_request_api.c;h=534542fd4a31d59f7d3cc33349d5d87468cea6da;hp=ca626877c20402f97e732823c40c9110a2367d31;hb=9ee138af54714e0fba18766313d8a738b52196fe;hpb=8610c19f3cb6065001e41c6fa81000d930533927 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: