Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

Commit

Permalink
fixed potential naming clash in assert_header
Browse files Browse the repository at this point in the history
  • Loading branch information
hukl authored Jan 24, 2019
1 parent 5cd3563 commit c99b247
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/etest_http.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,14 @@ end)(Res))).

-define (assert_header(HeaderName, Res),
((fun(__Res) ->
Headers = __Res#etest_http_res.headers,
case proplists:is_defined(HeaderName, Headers) of
__Headers = __Res#etest_http_res.headers,
case proplists:is_defined(HeaderName, __Headers) of
false ->
erlang:error({assert_header,
[{module, ?MODULE},
{line, ?LINE},
{expected, (??HeaderName)},
{headers, Headers}] });
{headers, __Headers}] });
_ -> ok
end
end)(Res))).
Expand Down

0 comments on commit c99b247

Please sign in to comment.