We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2738ad0 commit ade7513Copy full SHA for ade7513
boost/network/protocol/http/parser/incremental.hpp
@@ -113,7 +113,8 @@ namespace boost { namespace network { namespace http {
113
}
114
break;
115
case http_version_slash:
116
- if (*current == '1') {
+ // FIXME find a better way to use is_digit
117
+ if (algorithm::is_digit()(*current)) {
118
state_ = http_version_major;
119
++current;
120
} else {
@@ -129,7 +130,8 @@ namespace boost { namespace network { namespace http {
129
130
131
132
case http_version_dot:
- if (*current == '1' || *current == '0') {
133
134
135
state_ = http_version_minor;
136
137
0 commit comments