mirror of
https://github.com/gsi-upm/senpy
synced 2024-11-22 08:12:27 +00:00
Merge branch '21-ascii-cant-encode' into 0.8.x
This commit is contained in:
commit
6e970d01f2
@ -25,6 +25,7 @@ from .version import __version__
|
|||||||
from functools import wraps
|
from functools import wraps
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
|
import json
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -74,7 +75,7 @@ def basic_api(f):
|
|||||||
@wraps(f)
|
@wraps(f)
|
||||||
def decorated_function(*args, **kwargs):
|
def decorated_function(*args, **kwargs):
|
||||||
raw_params = get_params(request)
|
raw_params = get_params(request)
|
||||||
headers = {'X-ORIGINAL-PARAMS': raw_params}
|
headers = {'X-ORIGINAL-PARAMS': json.dumps(raw_params)}
|
||||||
# Get defaults
|
# Get defaults
|
||||||
web_params = parse_params({}, spec=WEB_PARAMS)
|
web_params = parse_params({}, spec=WEB_PARAMS)
|
||||||
api_params = parse_params({}, spec=API_PARAMS)
|
api_params = parse_params({}, spec=API_PARAMS)
|
||||||
|
Loading…
Reference in New Issue
Block a user