summaryrefslogtreecommitdiffstats
path: root/custodia
diff options
context:
space:
mode:
Diffstat (limited to 'custodia')
-rw-r--r--custodia/forwarder.py3
-rw-r--r--custodia/httpd/server.py2
2 files changed, 2 insertions, 3 deletions
diff --git a/custodia/forwarder.py b/custodia/forwarder.py
index e5028c5..47dda59 100644
--- a/custodia/forwarder.py
+++ b/custodia/forwarder.py
@@ -14,7 +14,8 @@ class Forwarder(HTTPConsumer):
super(Forwarder, self).__init__(*args, **kwargs)
self.client = CustodiaHTTPClient(self.config['forward_uri'])
self.headers = json.loads(self.config.get('forward_headers', '{}'))
- self.use_prefix = self.config.get('prefix_remote_user', True)
+ self.use_prefix = self.config.get('prefix_remote_user',
+ 'True').lower() == 'true'
self.uuid = str(uuid.uuid4())
self.headers['X-LOOP-CUSTODIA'] = self.uuid
diff --git a/custodia/httpd/server.py b/custodia/httpd/server.py
index c1df0cb..b1440ab 100644
--- a/custodia/httpd/server.py
+++ b/custodia/httpd/server.py
@@ -377,8 +377,6 @@ class HTTPServer(object):
if url.scheme == 'http+unix':
# Unix socket
serverclass = ForkingUnixHTTPServer
- if address[0] != '/':
- raise ValueError('Must use absolute unix socket name')
if os.path.exists(address):
os.remove(address)
elif url.scheme == 'http':