Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lu Xu
slapos.core
Commits
5629ac03
Commit
5629ac03
authored
Jun 01, 2012
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not duplicate supported schemes.
parent
a5b2e39a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
slapos/slap/slap.py
slapos/slap/slap.py
+4
-4
No files found.
slapos/slap/slap.py
View file @
5629ac03
...
@@ -585,17 +585,17 @@ class slap:
...
@@ -585,17 +585,17 @@ class slap:
if
not
(
query
==
''
and
fragment
==
''
):
if
not
(
query
==
''
and
fragment
==
''
):
raise
AttributeError
(
'Passed URL %r issue: not parseable'
%
raise
AttributeError
(
'Passed URL %r issue: not parseable'
%
slapgrid_uri
)
slapgrid_uri
)
if
scheme
not
in
(
'http'
,
'https'
):
raise
AttributeError
(
'Passed URL %r issue: there is no support for %r p'
'rotocol'
%
(
slapgrid_uri
,
scheme
))
if
scheme
==
'http'
:
if
scheme
==
'http'
:
connection_wrapper
=
httplib
.
HTTPConnection
connection_wrapper
=
httplib
.
HTTPConnection
el
se
:
el
if
scheme
==
'https'
:
if
master_ca_file
is
not
None
:
if
master_ca_file
is
not
None
:
connection_wrapper
=
HTTPSConnectionCA
connection_wrapper
=
HTTPSConnectionCA
else
:
else
:
connection_wrapper
=
httplib
.
HTTPSConnection
connection_wrapper
=
httplib
.
HTTPSConnection
else
:
raise
AttributeError
(
'Passed URL %r issue: there is no support for %r p'
'rotocol'
%
(
slapgrid_uri
,
scheme
))
slap
.
_connection_helper
=
\
slap
.
_connection_helper
=
\
SlapDocument
.
_connection_helper
=
ConnectionHelper
(
connection_wrapper
,
SlapDocument
.
_connection_helper
=
ConnectionHelper
(
connection_wrapper
,
netloc
,
path
,
key_file
,
cert_file
,
master_ca_file
,
timeout
)
netloc
,
path
,
key_file
,
cert_file
,
master_ca_file
,
timeout
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment