Fixes MSVC++ C4800 error (converting char to bool)

This commit is contained in:
Peter Thorson
2013-02-16 12:41:07 -06:00
parent 5c01b272fe
commit 9e19765bdf

View File

@@ -62,7 +62,7 @@ namespace http {
};
inline bool is_token_char(unsigned char c) {
return HEADER_TOKEN[c];
return (HEADER_TOKEN[c] == 1);
}
inline bool is_not_token_char(unsigned char c) {