mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
http_response: don't try to move temporary
This commit is contained in:
parent
2970f81001
commit
9e7015281e
@ -139,7 +139,7 @@ namespace crow
|
|||||||
set_header("Content-Type", value.content_type);
|
set_header("Content-Type", value.content_type);
|
||||||
}
|
}
|
||||||
response(int code, returnable&& value):
|
response(int code, returnable&& value):
|
||||||
code(code), body(std::move(value.dump()))
|
code(code), body(value.dump())
|
||||||
{
|
{
|
||||||
set_header("Content-Type", std::move(value.content_type));
|
set_header("Content-Type", std::move(value.content_type));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user