[tor-commits] [stem/master] Fix broken get_hidden_service_descriptor action

atagar at torproject.org atagar at torproject.org
Sat Feb 27 18:18:40 UTC 2016


commit 988aeb121b762f58712bda078d1f13ffa0819bfb
Author: Donncha O'Cearbhaill <donncha at donncha.is>
Date:   Sat Feb 27 18:10:25 2016 +0100

    Fix broken get_hidden_service_descriptor action
    
    The `get_hidden_service_descriptor` function takes an onion
    address and a list of hidden service descriptors to fetch the
    hidden service descriptor from.
    
    This commit fixes a bug where a space was missing between the onion
    address and the first SERVER= argument.
---
 stem/control.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stem/control.py b/stem/control.py
index 8918426..1437d2d 100644
--- a/stem/control.py
+++ b/stem/control.py
@@ -1962,7 +1962,7 @@ class Controller(BaseController):
       request = 'HSFETCH %s' % address
 
       if servers:
-        request += ' '.join(['SERVER=%s' % s for s in servers])
+        request += ' ' + ' '.join(['SERVER=%s' % s for s in servers])
 
       response = self.msg(request)
       stem.response.convert('SINGLELINE', response)



More information about the tor-commits mailing list