Genie.jl icon indicating copy to clipboard operation
Genie.jl copied to clipboard

contains => occursin (needle-haystack around the wrong way)

Open angusmoore opened this issue 1 year ago • 0 comments

occursin is occursin(needle, haystack), whereas contains is contains(haystack, needle)`

The logic in Headers was comparing an individual header or origin as the first argument (ie a needle) against the second argument as the haystack (list of origins/allowed headers). So it should use occursin, not contains. (Or flip the order of the arguments, but this way works I think)

angusmoore avatar Sep 02 '22 07:09 angusmoore