etr / libhttpserver

C++ library for creating an embedded Rest HTTP server (and more)
GNU Lesser General Public License v2.1
882 stars 184 forks source link

fix #292 change get_args to return mutliple values per key #293

Closed stuart-byma closed 1 year ago

stuart-byma commented 1 year ago

Requirements for Contributing a Bug Fix

Identify the Bug

https://github.com/etr/libhttpserver/issues/292

Description of the Change

Change arg_map and arg_view_map to std::map<std::string, std::vector<std::string>> etc, so that multiple values per key can be returned.

Update an appropriate test case to check that the behavior is correct.

Alternate Designs

No alternate designs

Possible Drawbacks

Small change to user facing API.

Verification Process

Tests were updated to check that new code is correct.

Release Notes