Skip to content

Commit

Permalink
handlers: do not send empty results on IOPub
Browse files Browse the repository at this point in the history
  • Loading branch information
n-riesco committed Jun 18, 2016
1 parent 724f37c commit 1df1e80
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/handlers_v4.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,10 @@ function execute_request(request) {
}
);

if (!result.mime) {
return;
}

if (this.hideUndefined &&
result.mime["text/plain"] === "undefined") {
return;
Expand Down
4 changes: 4 additions & 0 deletions lib/handlers_v5.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ function execute_request(request) {
}
);

if (!result.mime) {
return;
}

if (this.hideUndefined &&
result.mime["text/plain"] === "undefined") {
return;
Expand Down

0 comments on commit 1df1e80

Please sign in to comment.