From bdb1066d0a35f6164a347883069384eb1e6dbb39 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Wed, 10 Apr 2013 13:29:12 -0700 Subject: [PATCH] Fix use of Range header in log-pusher.py. * modules/openstack_project/files/logstash/log-pusher.py: The Range http header was not properly applied, fix it. Change-Id: I9ccccd57f7d72853dfbce0c1593737e0f6495724 Reviewed-on: https://review.openstack.org/26668 Reviewed-by: Jeremy Stanley Approved: James E. Blair Reviewed-by: James E. Blair Tested-by: Jenkins --- modules/openstack_project/files/logstash/log-pusher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openstack_project/files/logstash/log-pusher.py b/modules/openstack_project/files/logstash/log-pusher.py index 583f6eeda0..c52410dec5 100644 --- a/modules/openstack_project/files/logstash/log-pusher.py +++ b/modules/openstack_project/files/logstash/log-pusher.py @@ -157,7 +157,7 @@ class LogRetriever(threading.Thread): # Try for up to 60 seconds to retrieve the complete log file. try: req = urllib.request.Request(source_url) - req.add_header('bytes', str(content_len) + '-') + req.add_header('Range', 'bytes=' + str(content_len) + '-') r = urllib.request.urlopen(req) raw_buf += r.read() content_len = len(raw_buf)