Gun adapter helper: fix wildcard cert issues on OTP 23
authorrinpatch <rinpatch@sdf.org>
Tue, 23 Jun 2020 17:36:21 +0000 (20:36 +0300)
committerrinpatch <rinpatch@sdf.org>
Wed, 15 Jul 2020 12:26:35 +0000 (15:26 +0300)
commit37f1e781cb19594a6534efbc4d28e793d5960915
tree8b8fdac8ff3fa69c8b16e9c7b823e85b74885ec5
parent007843b75e0c7087dad1ef932224b21327d81793
Gun adapter helper: fix wildcard cert issues on OTP 23

See https://bugs.erlang.org/browse/ERL-1260 for more info.

The ssl match function is basically copied from mint, except
that `:string.lowercase/1` was replaced by `:string.casefold`.
It was a TODO in mint's code, so might as well do it since we don't need
to support OTP <20.

Closes #1834
lib/pleroma/http/adapter_helper/gun.ex