forked from glynos/cpp-netlib
-
Notifications
You must be signed in to change notification settings - Fork 424
Closed
Description
If server http response doesn't have textual response code,
cppnet-lib can't parse status code normally.
ex) "Invalid status message part" error
HTTP/1.1 401
...
ex) "OK"
HTTP/1.1 401 Unauthorized
...
"incremental.hpp" should be fixed like
... Line 176:
case http_status_done:
if (boost::algorithm::is_alnum()(*current)) {
state_ = http_status_message_char;
++current;
} else if (*current == '\r') { // <-- ADDED
state_ = http_status_message_cr; // <-- ADDED
++current; // <-- ADDED
} else {
parsed_ok = false;
}
break;
...
thanks.
Metadata
Metadata
Assignees
Labels
No labels