Re: [PATCH] update file size after starting transfer



On Wed, 2007-01-17 at 08:12 +1000, Jonathan Matthew wrote:

> The patch adds a gnome_vfs_get_file_info_from_handle() call after
> opening the source file to set the file size if the initial
> gnome_vfs_get_file_info() didn't provide a value.  For HTTP transfers,
> this will use the Content-Length header from the GET response, which is
> at least a bit more likely to provide the right value.

Its sort of hacky to have the workaround in the core xfer code, but it
looks ok. Commited.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's a suicidal alcoholic boxer whom everyone believes is mad. She's a 
man-hating snooty bodyguard who dreams of becoming Elvis. They fight crime! 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]