mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
🚧 working on
This commit is contained in:
parent
617b52ac93
commit
46b48b1d6f
1 changed files with 2 additions and 1 deletions
|
|
@ -6,7 +6,8 @@ void JsonFilter::doFilter(const HttpRequestPtr &req,
|
|||
FilterCallback &&fcb,
|
||||
FilterChainCallback &&fccb)
|
||||
{
|
||||
if (req->getHeader("Content-Type") == "application/json" && req->getHeader("Accept") == "application/json")
|
||||
std::string_view content_type = req->getHeader("Content-Type");
|
||||
if ((content_type == "application/json" || content_type == "*/*") && req->getHeader("Accept") == "application/json") //probably will need to change to contains() type function rather then equality check
|
||||
{
|
||||
fccb();
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue