Skip to content

Commit 40d0ff9

Browse files
committed
default empty string
1 parent 255e375 commit 40d0ff9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/inspector/network_agent.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,12 @@ std::unique_ptr<protocol::Network::Response> createResponseFromObject(
171171

172172
protocol::String mimeType;
173173
if (!ObjectGetProtocolString(context, response, "mimeType").To(&mimeType)) {
174-
return {};
174+
mimeType = protocol::String("");
175175
}
176176

177177
protocol::String charset = protocol::String();
178178
if (!ObjectGetProtocolString(context, response, "charset").To(&charset)) {
179-
return {};
179+
charset = protocol::String("");
180180
}
181181

182182
return protocol::Network::Response::create()

0 commit comments

Comments
 (0)