forked from boostorg/beast
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:
1 parent
8207a53113
commit
43f8bb841a
6 files changed
+11
-8
No files matched your search
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in new issue
Block a user