mirror of
https://github.com/curl/curl.git
synced 2026-08-26 02:43:31 +03:00
tool_cb_hdr.c formatting
This commit is contained in:
parent
9110001034
commit
4c4e407952
1 changed files with 4 additions and 5 deletions
|
|
@ -56,7 +56,7 @@ static char *parse_filename(const char *ptr, size_t len);
|
||||||
|
|
||||||
#ifdef LINK
|
#ifdef LINK
|
||||||
static void write_linked_location(CURL *curl, const char *location,
|
static void write_linked_location(CURL *curl, const char *location,
|
||||||
size_t loclen, FILE *stream);
|
size_t loclen, FILE *stream);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int tool_write_headers(struct HdrCbData *hdrcbdata, FILE *stream)
|
int tool_write_headers(struct HdrCbData *hdrcbdata, FILE *stream)
|
||||||
|
|
@ -81,7 +81,6 @@ fail:
|
||||||
/*
|
/*
|
||||||
** callback for CURLOPT_HEADERFUNCTION
|
** callback for CURLOPT_HEADERFUNCTION
|
||||||
*/
|
*/
|
||||||
|
|
||||||
size_t tool_header_cb(char *ptr, size_t size, size_t nmemb, void *userdata)
|
size_t tool_header_cb(char *ptr, size_t size, size_t nmemb, void *userdata)
|
||||||
{
|
{
|
||||||
struct per_transfer *per = userdata;
|
struct per_transfer *per = userdata;
|
||||||
|
|
@ -402,9 +401,9 @@ static char *parse_filename(const char *ptr, size_t len)
|
||||||
* should not be needed but the real world returns plenty of relative
|
* should not be needed but the real world returns plenty of relative
|
||||||
* URLs here.
|
* URLs here.
|
||||||
*/
|
*/
|
||||||
static
|
static void write_linked_location(CURL *curl, const char *location,
|
||||||
void write_linked_location(CURL *curl, const char *location, size_t loclen,
|
size_t loclen, FILE *stream)
|
||||||
FILE *stream) {
|
{
|
||||||
/* This would so simple if CURLINFO_REDIRECT_URL were available here */
|
/* This would so simple if CURLINFO_REDIRECT_URL were available here */
|
||||||
CURLU *u = NULL;
|
CURLU *u = NULL;
|
||||||
char *copyloc = NULL, *locurl = NULL, *scheme = NULL, *finalurl = NULL;
|
char *copyloc = NULL, *locurl = NULL, *scheme = NULL, *finalurl = NULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue