From a782e368605ef8bcf54815b4d8c5f41a934c01a2 Mon Sep 17 00:00:00 2001 From: Michael Vrable Date: Thu, 24 Feb 2011 17:07:19 -0800 Subject: [PATCH] Fix byte range request syntax. --- bluesky/store-azure.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bluesky/store-azure.c b/bluesky/store-azure.c index 44101ec..314de3f 100644 --- a/bluesky/store-azure.c +++ b/bluesky/store-azure.c @@ -307,13 +307,13 @@ static void azurestore_task(gpointer a, gpointer s) 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); -- 2.20.1