Skip to content

Commit

Permalink
Fix binary headers for inets
Browse files Browse the repository at this point in the history
  • Loading branch information
choptastic committed Feb 17, 2015
1 parent eeb327c commit c6d753e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/inets_bridge_modules/inets_simple_bridge.erl
Expand Up @@ -157,8 +157,9 @@ to_cookie_expire(SecondsToLive) ->
httpd_util:rfc1123_date(DateTime).


%% Inets wants some headers as lowercase atoms, so we
%% need to do some special massage here.
% Inets wants some headers as lowercase atoms, and the rest as lists. So let's fix these up.
massage(Header) when is_binary(Header) ->
massage(binary_to_list(Header));
massage(Header) ->
X = simple_bridge_util:atomize_header(Header),
case lists:member(X, special_headers()) of
Expand Down

0 comments on commit c6d753e

Please sign in to comment.