From 994c691d6694919c545870f83ace947da63e563c Mon Sep 17 00:00:00 2001
From: "Juan J. Martinez" <juan@memset.com>
Date: Mon, 3 Dec 2012 10:14:26 +0000
Subject: [PATCH] Don't add trailing slash to auth URL.

Adding a trailing slash to the authentication URL may interfere with
auth service implementations not using /FOO/ but /FOO as authentication
URL.

OpenStack Object Storage API 1.0 doesn't specify that the auth URL must
end in a slash and swiftclient.client doesn't force it either.

Change-Id: I4e6b6d758d5ccc884e253880513e3d8763ffc2ff
Fixes: bug #1085827
---
 bin/swift | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/bin/swift b/bin/swift
index 53b6b689..49a295d6 100755
--- a/bin/swift
+++ b/bin/swift
@@ -1030,10 +1030,6 @@ def parse_args(parser, args, enforce_requires=True):
         'region_name': options.os_region_name,
     }
 
-    # Handle trailing '/' in URL
-    if options.auth and not options.auth.endswith('/'):
-        options.auth += '/'
-
     if enforce_requires and \
             not (options.auth and options.user and options.key):
         exit('''