1
0
Fork 0
mirror of https://github.com/KingDuckZ/kamokan.git synced 2024-11-23 00:33:44 +00:00

Remove debug text that was breaking the http response.

Also check if there are tabs in the mime parameter.
This commit is contained in:
King_DuckZ 2017-06-01 09:06:10 +01:00
parent 22a4503e0e
commit 5640cb5769

View file

@ -155,15 +155,8 @@ namespace tawashi {
template <typename V>
bool operator() (const V& parIn) const {
std::cout << "simple_token_checker returning ";
if (std::find(std::begin(parIn), std::end(parIn), ' ') == std::end(parIn)) {
std::cout << "true\n";
return true;
}
else {
std::cout << "false\n";
return false;
}
return std::find(std::begin(parIn), std::end(parIn), ' ') == std::end(parIn) and
std::find(std::begin(parIn), std::end(parIn), '\t') == std::end(parIn);
}
};
} //unnamed namespace