mirror of
https://github.com/KingDuckZ/kamokan.git
synced 2024-12-27 21:35:41 +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:
parent
22a4503e0e
commit
5640cb5769
1 changed files with 2 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue