alphagov/govuk_content_api — pull request #118 by jamiecobbett (2013-07-19 10:46:41+00:00)
Title: Gracefully handle the q param being empty

Until recently we could rely on gds-api-adapters, which would return an empty
array if the query was blank. Now though, we are expecting a Hash, so we get an
errror.

With this change we check the param ourself and reply accordingly.