[project @ 2004-03-13 20:45:00 by bursa]
Remove unescaping on redirect. svn path=/import/netsurf/; revision=617
This commit is contained in:
parent
2dc863a57a
commit
a25c9bb1c3
|
@ -610,7 +610,6 @@ bool fetch_process_headers(struct fetch *f)
|
|||
{
|
||||
long http_code;
|
||||
const char *type;
|
||||
char *temp;
|
||||
CURLcode code;
|
||||
|
||||
f->had_headers = true;
|
||||
|
@ -621,9 +620,6 @@ bool fetch_process_headers(struct fetch *f)
|
|||
|
||||
/* handle HTTP redirects (3xx response codes) */
|
||||
if (300 <= http_code && http_code < 400 && f->location != 0) {
|
||||
temp = curl_unescape(f->location, strlen(f->location));
|
||||
xfree(f->location);
|
||||
f->location = temp;
|
||||
LOG(("FETCH_REDIRECT, '%s'", f->location));
|
||||
f->callback(FETCH_REDIRECT, f->p, f->location, 0);
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue