We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0e7f00 commit b1f5c5cCopy full SHA for b1f5c5c
src/parse/query.cpp
@@ -87,15 +87,17 @@ bool parse_query(rpc::request_t& out, const request& request) NOEXCEPT
87
return true;
88
}
89
90
- ////if (contains(accepts, json) || format == "json")
91
- ////{
92
- //// params["media"] = to_value(json);
93
- //// return true;
94
- ////}
95
-
96
- // Default to json.
97
- params["media"] = to_value(json);
98
- return true;
+ ////// Default format to json.
+ ////params["media"] = to_value(json);
+ ////return true;
+
+ if (contains(accepts, json) || format == "json")
+ {
+ params["media"] = to_value(json);
+ return true;
+ }
99
100
+ return false;
101
102
103
BC_POP_WARNING()
0 commit comments