mirror of
https://github.com/curl/curl.git
synced 2026-06-07 12:44:24 +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
|
||||
static void write_linked_location(CURL *curl, const char *location,
|
||||
size_t loclen, FILE *stream);
|
||||
size_t loclen, FILE *stream);
|
||||
#endif
|
||||
|
||||
int tool_write_headers(struct HdrCbData *hdrcbdata, FILE *stream)
|
||||
|
|
@ -81,7 +81,6 @@ fail:
|
|||
/*
|
||||
** callback for CURLOPT_HEADERFUNCTION
|
||||
*/
|
||||
|
||||
size_t tool_header_cb(char *ptr, size_t size, size_t nmemb, void *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
|
||||
* URLs here.
|
||||
*/
|
||||
static
|
||||
void write_linked_location(CURL *curl, const char *location, size_t loclen,
|
||||
FILE *stream) {
|
||||
static void write_linked_location(CURL *curl, const char *location,
|
||||
size_t loclen, FILE *stream)
|
||||
{
|
||||
/* This would so simple if CURLINFO_REDIRECT_URL were available here */
|
||||
CURLU *u = NULL;
|
||||
char *copyloc = NULL, *locurl = NULL, *scheme = NULL, *finalurl = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue