Skip to content

Commit c12a78b

Browse files
Merge pull request #787 from hugapi/feature/fix-issue-785
Fix issue #785
2 parents 3080c44 + 7503657 commit c12a78b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Changelog
1414
=========
1515
### 2.5.1 - TBD
1616
- Optimizations and simplification of async support, taking advantadge of Python3.4 deprecation.
17+
- Fix issue #785: Empty query params are not ignored on 2.5.0
18+
- Added support for modifying falcon API directly on startup
1719
- Initial `black` formatting of code base, in preperation for CI enforced code formatting
1820

1921
### 2.5.0 - May 4, 2019

hug/api.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ def __init__(self, api):
7878

7979
class HTTPInterfaceAPI(InterfaceAPI):
8080
"""Defines the HTTP interface specific API"""
81-
8281
__slots__ = (
8382
"routes",
8483
"versions",
8584
"base_url",
85+
"falcon",
8686
"_output_format",
8787
"_input_format",
8888
"versioned",
@@ -356,7 +356,8 @@ def version_router(
356356

357357
def server(self, default_not_found=True, base_url=None):
358358
"""Returns a WSGI compatible API server for the given Hug API module"""
359-
falcon_api = falcon.API(middleware=self.middleware)
359+
falcon_api = self.falcon = falcon.API(middleware=self.middleware)
360+
falcon_api.req_options.keep_blank_qs_values = False
360361
default_not_found = self.documentation_404() if default_not_found is True else None
361362
base_url = self.base_url if base_url is None else base_url
362363

0 commit comments

Comments
 (0)