diff options
Diffstat (limited to 'stream/http.c')
-rw-r--r-- | stream/http.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/stream/http.c b/stream/http.c index 013c6491d9..8ae933a2bb 100644 --- a/stream/http.c +++ b/stream/http.c @@ -835,8 +835,7 @@ static int http_streaming_start(stream_t *stream, int* file_format) { next_url = http_get_field( http_hdr, "Location" ); if( next_url!=NULL ) { closesocket( fd ); - url_free( url ); - stream->streaming_ctrl->url = url = url_new( next_url ); + stream->streaming_ctrl->url = url_redirect( &url, next_url ); http_free( http_hdr ); redirect = 1; } |