bad_target replaces bad_path (API Change):

Actions Required:

* Replace references to http::error::bad_path with http::error::bad_target
This commit is contained in:
Vinnie Falco committed 2017-07-20 08:15:29 -07:00
1 parent 8207a53113
commit 43f8bb841a
6 files changed
+11 -8

No files matched your search

+1 -1
View File
@@ -98,7 +98,7 @@ enum class error
bad_method,
/// The request-target is invalid.
bad_path,
bad_target,
/// The HTTP-version is invalid.
bad_version,
+2 -2
View File
@@ -318,12 +318,12 @@ parse_header(char const*& p, char const* term,
auto const target = parse_target(p);
if(target.empty())
{
ec = error::bad_path;
ec = error::bad_target;
return;
}
if(*p++ != ' ')
{
ec = error::bad_path;
ec = error::bad_target;
return;
}
+1 -1
View File
@@ -47,7 +47,7 @@ public:
case error::bad_alloc: return "bad alloc";
case error::bad_line_ending: return "bad line ending";
case error::bad_method: return "bad method";
case error::bad_path: return "bad path";
case error::bad_target: return "bad target";
case error::bad_version: return "bad version";
case error::bad_status: return "bad status";
case error::bad_reason: return "bad reason";