summaryrefslogtreecommitdiff
path: root/apifw
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-11-13 13:39:48 +0100
committerLars Wirzenius <liw@liw.fi>2017-11-13 13:39:48 +0100
commit63b0ba40501ab05745b0a56bdbfd601985053eed (patch)
tree6348d65464db3e1bd47cd6e2dd94cd439ba9eae6 /apifw
parent9afccaf7f438f475b7787aae76c384692d163466 (diff)
downloadapifw-63b0ba40501ab05745b0a56bdbfd601985053eed.tar.gz
Fix: do not require RAW_URI in request, to ease testing
Diffstat (limited to 'apifw')
-rw-r--r--apifw/bottleapp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/apifw/bottleapp.py b/apifw/bottleapp.py
index 541ddfe..99cced0 100644
--- a/apifw/bottleapp.py
+++ b/apifw/bottleapp.py
@@ -249,7 +249,7 @@ class BottleApplication:
def _callback_with_body(self, callback):
def wrapper(*args, **kwargs):
- kwargs['raw_uri_path'] = bottle.request.environ['RAW_URI']
+ kwargs['raw_uri_path'] = bottle.request.environ.get('RAW_URI', '')
content_type, body = self._get_request_body()
response = callback(content_type, body, *args, **kwargs)
return bottle.HTTPResponse(