2 -- Copyright (C) 2013 Florian Zeitz
4 -- This project is MIT/X11 licensed. Please see the
5 -- COPYING file in the source package for more information.
10 function http.contains_token(field, token)
11 field = ","..field:gsub("[ \t]", ""):lower()..",";
12 return field:find(","..token:lower()..",", 1, true) ~= nil;