Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
kamaki
Commits
82903313
Commit
82903313
authored
Jun 07, 2013
by
Stavros Sachtouris
Browse files
Make sure all url-params are url-encoded
Refs: #3956
parent
866a5b5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
kamaki/clients/__init__.py
View file @
82903313
...
...
@@ -357,11 +357,11 @@ class Client(object):
def
set_header
(
self
,
name
,
value
,
iff
=
True
):
"""Set a header 'name':'value'"""
if
value
is
not
None
and
iff
:
self
.
headers
[
name
]
=
value
self
.
headers
[
name
]
=
unicode
(
value
)
def
set_param
(
self
,
name
,
value
=
None
,
iff
=
True
):
if
iff
:
self
.
params
[
name
]
=
value
self
.
params
[
name
]
=
unicode
(
value
)
def
request
(
self
,
method
,
path
,
...
...
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