mirror of
https://github.com/curl/curl.git
synced 2026-08-26 20:13:33 +03:00
parent
0236276c3d
commit
5a263710f6
30 changed files with 60 additions and 60 deletions
|
|
@ -252,7 +252,7 @@ static int curltest_echo_handler(request_rec *r)
|
|||
apr_table_setn(r->subprocess_env, "no-gzip", "1");
|
||||
|
||||
ct = apr_table_get(r->headers_in, "content-type");
|
||||
ap_set_content_type(r, ct? ct : "application/octet-stream");
|
||||
ap_set_content_type(r, ct ? ct : "application/octet-stream");
|
||||
|
||||
bb = apr_brigade_create(r->pool, c->bucket_alloc);
|
||||
/* copy any request body into the response */
|
||||
|
|
@ -593,7 +593,7 @@ static int curltest_put_handler(request_rec *r)
|
|||
apr_table_setn(r->subprocess_env, "no-gzip", "1");
|
||||
|
||||
ct = apr_table_get(r->headers_in, "content-type");
|
||||
ap_set_content_type(r, ct? ct : "text/plain");
|
||||
ap_set_content_type(r, ct ? ct : "text/plain");
|
||||
|
||||
if(read_delay) {
|
||||
apr_sleep(read_delay);
|
||||
|
|
@ -675,7 +675,7 @@ static int curltest_1_1_required(request_rec *r)
|
|||
apr_table_setn(r->subprocess_env, "no-gzip", "1");
|
||||
|
||||
ct = apr_table_get(r->headers_in, "content-type");
|
||||
ap_set_content_type(r, ct? ct : "text/plain");
|
||||
ap_set_content_type(r, ct ? ct : "text/plain");
|
||||
|
||||
bb = apr_brigade_create(r->pool, c->bucket_alloc);
|
||||
/* flush response */
|
||||
|
|
|
|||
|
|
@ -1270,7 +1270,7 @@ retry:
|
|||
} while(ptr && *ptr);
|
||||
}
|
||||
free(cmd);
|
||||
req->open = use_gopher?FALSE:persistent;
|
||||
req->open = use_gopher ? FALSE : persistent;
|
||||
|
||||
prevtestno = req->testno;
|
||||
prevpartno = req->partno;
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ static void dump_bufq(struct bufq *q, const char *msg)
|
|||
}
|
||||
fprintf(stderr, " ]\n");
|
||||
terr = tail_err(q);
|
||||
fprintf(stderr, "- tail: %s\n", terr? terr : "ok");
|
||||
fprintf(stderr, "- tail: %s\n", terr ? terr : "ok");
|
||||
n = 0;
|
||||
chunk = q->spare;
|
||||
while(chunk) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue