diff options
author | Loïc Hoguin <[email protected]> | 2017-02-19 16:51:16 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-02-19 16:51:16 +0100 |
commit | 9255cdf1d783ff5deff783ae13b0d003f484bb86 (patch) | |
tree | 352ae4164e8ebb1eac9d11448fd095b4231795e6 /test | |
parent | 91ae70b06c9cc486ea2c2cf91b94de799ceb53b2 (diff) | |
download | cowboy-9255cdf1d783ff5deff783ae13b0d003f484bb86.tar.gz cowboy-9255cdf1d783ff5deff783ae13b0d003f484bb86.tar.bz2 cowboy-9255cdf1d783ff5deff783ae13b0d003f484bb86.zip |
Change the type of bindings from a list to a map
Maps make more sense because the keys are unique.
Diffstat (limited to 'test')
-rw-r--r-- | test/req_SUITE.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/req_SUITE.erl b/test/req_SUITE.erl index ceff485..fe1b826 100644 --- a/test/req_SUITE.erl +++ b/test/req_SUITE.erl @@ -114,10 +114,9 @@ binding(Config) -> <<"default">> = do_get_body("/args/binding/undefined/default", Config), ok. -%% @todo Do we really want a key/value list here instead of a map? bindings(Config) -> doc("Values bound from request URI path."), - <<"[{key,<<\"bindings\">>}]">> = do_get_body("/bindings", Config), + <<"#{key => <<\"bindings\">>}">> = do_get_body("/bindings", Config), ok. header(Config) -> |