mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
changed output to null and changed warning message
also changed from <cmath> to <math.h>
This commit is contained in:
parent
7672f3a0f9
commit
07a2422c63
@ -16,7 +16,7 @@
|
||||
#include <boost/algorithm/string/predicate.hpp>
|
||||
#include <boost/operators.hpp>
|
||||
#include <vector>
|
||||
#include <cmath>
|
||||
#include <math.h>
|
||||
|
||||
#include "crow/settings.h"
|
||||
#include "crow/returnable.h"
|
||||
@ -1776,7 +1776,8 @@ namespace crow
|
||||
{
|
||||
if (isnan(v.num.d) || isinf(v.num.d))
|
||||
{
|
||||
CROW_LOG_WARNING << "Invalid JSON value detected (" << v.num.d << "), ignoring";
|
||||
out += "null";
|
||||
CROW_LOG_WARNING << "Invalid JSON value detected (" << v.num.d << "), value set to null";
|
||||
break;
|
||||
}
|
||||
#ifdef _MSC_VER
|
||||
|
Loading…
Reference in New Issue
Block a user