simple_bridge icon indicating copy to clipboard operation
simple_bridge copied to clipboard

Fix dialyzer erros for cowboy 2.9.0

Open joaohf opened this issue 2 years ago • 1 comments

simple_bridge/src/cowboy_bridge_modules/cowboy_simple_bridge.erl

Line 117 Column 9: The variable _ can never match since previous clauses completely covered the type #{binary()=>binary() | maybe_improper_list(binary() | maybe_improper_list(any(),binary() | []) | byte(),binary() | [])} Line 166 Column 9: The pattern {'error', Reason} can never match the type {'more',binary(),#{'body_length':='undefined' | non_neg_integer(), ... Line 177 Column 9: The pattern {H, L} can never match the type 'HTTP/2'

joaohf avatar May 19 '23 16:05 joaohf

Hello,

I'm not sure if this PR is too specific for cowboy 2.9.0. Maybe yes. In fact, how does simple_bridge detect and work with cowboy versions ?

joaohf avatar May 19 '23 16:05 joaohf