if (async->start != 0 && async->len != 0) {
g_hash_table_insert(headers,
g_strdup("Range"),
- g_strdup_printf("%zd-%zd", async->start,
+ g_strdup_printf("bytes=%zd-%zd", async->start,
async->start + async->len));
async->range_done = TRUE;
} else if (async->start != 0) {
g_hash_table_insert(headers,
g_strdup("Range"),
- g_strdup_printf("%zd-", async->start));
+ g_strdup_printf("bytes=%zd-", async->start));
async->range_done = TRUE;
}
result = submit_request(store, curl, "GET", async->key, headers, NULL);