Skip to content

Commit

Permalink
Fix ParseSSE function causing Leo to get cut off (uplift to 1.60.x) (#…
Browse files Browse the repository at this point in the history
…21031)

Uplift of #21018 (squashed) to release
  • Loading branch information
brave-builds authored Nov 21, 2023
1 parent 5a4d8d2 commit 0ac5da0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/api_request_helper/api_request_helper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ void APIRequestHelper::URLLoaderHandler::ParseSSE(
};

DVLOG(2) << "Going to call ParseJson";
GetDataDecoder()->ParseJson(std::move(json.data()),
GetDataDecoder()->ParseJson(std::move(std::string(json)),
base::BindOnce(std::move(on_json_parsed),
weak_ptr_factory_.GetWeakPtr()));
}
Expand Down

0 comments on commit 0ac5da0

Please sign in to comment.