Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
senpy
senpy
Commits
d7e115d7
Commit
d7e115d7
authored
Apr 03, 2017
by
J. Fernando Sánchez
Browse files
Encode HEADERS
Closes
#21
parent
0c8f98d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
senpy/blueprints.py
View file @
d7e115d7
...
...
@@ -25,6 +25,7 @@ from .version import __version__
from
functools
import
wraps
import
logging
import
json
logger
=
logging
.
getLogger
(
__name__
)
...
...
@@ -74,7 +75,7 @@ def basic_api(f):
@
wraps
(
f
)
def
decorated_function
(
*
args
,
**
kwargs
):
raw_params
=
get_params
(
request
)
headers
=
{
'X-ORIGINAL-PARAMS'
:
raw_params
}
headers
=
{
'X-ORIGINAL-PARAMS'
:
json
.
dumps
(
raw_params
)
}
# Get defaults
web_params
=
parse_params
({},
spec
=
WEB_PARAMS
)
api_params
=
parse_params
({},
spec
=
API_PARAMS
)
...
...
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