mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-26 22:35:55 +03:00
Fix HTTPBF again
it really needs to be %u because if it is signed, then we have -- in the URL which the server can't understand
This commit is contained in:
parent
3e795a84c2
commit
00d27d0e9c
1 changed files with 2 additions and 1 deletions
|
@ -231,7 +231,8 @@ static char* get_transfer_url( hbf_transfer_t *transfer, int indx ) {
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if( sprintf(res, "%s-chunking-%d-%d-%d", transfer->url, transfer->transfer_id,
|
||||
/* Note: must be %u for unsigned because one does not want '--' */
|
||||
if( sprintf(res, "%s-chunking-%u-%u-%u", transfer->url, transfer->transfer_id,
|
||||
transfer->block_cnt, indx ) < 0 ) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue