projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- release 0.8.0
[m6w6/ext-http]
/
http_request_api.c
diff --git
a/http_request_api.c
b/http_request_api.c
index ca626877c20402f97e732823c40c9110a2367d31..534542fd4a31d59f7d3cc33349d5d87468cea6da 100644
(file)
--- 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:
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, "Unk
n
own request body type: %d", body->type);
status = FAILURE;
goto http_request_end;
break;
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;
{
static char *offset = NULL, *original = NULL;
http_request_body *body = (http_request_body *) s;
-
+
switch (body->type)
{
case HTTP_REQUEST_BODY_UPLOADFILE:
switch (body->type)
{
case HTTP_REQUEST_BODY_UPLOADFILE: