Skip to content
Merged
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions src/inspector/network_agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@ std::unique_ptr<protocol::Network::Response> createResponseFromObject(

protocol::String mimeType;
if (!ObjectGetProtocolString(context, response, "mimeType").To(&mimeType)) {
return {};
mimeType = protocol::String("");
}

protocol::String charset = protocol::String();
if (!ObjectGetProtocolString(context, response, "charset").To(&charset)) {
return {};
charset = protocol::String("");
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After merging with main, the parallel/test-inspector-network-content-type test was failing, so I made some changes.
I believe setting the default to an empty string shouldn't cause any issues.

}

return protocol::Network::Response::create()
Expand Down
Loading