Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions src/parse/query.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,6 @@ bool parse_query(rpc::request_t& out, const request& request) NOEXCEPT

const auto accepts = to_media_types((request)[field::accept]);

if (contains(accepts, json) || format == "json")
{
params["media"] = to_value(json);
return true;
}

if (contains(accepts, text) || format == "text")
{
params["media"] = to_value(text);
Expand All @@ -75,7 +69,15 @@ bool parse_query(rpc::request_t& out, const request& request) NOEXCEPT
return true;
}

return false;
////if (contains(accepts, json) || format == "json")
////{
//// params["media"] = to_value(json);
//// return true;
////}

// Default to json.
params["media"] = to_value(json);
return true;
}

} // namespace node
Expand Down
Loading