Skip to content

Commit c2acbb7

Browse files
committed
Merge pull request mostlyserious#176 from andersonmat/master
Fix to allow key retrieval when using protocol buffers
2 parents ff4402a + 7990ab2 commit c2acbb7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/protocol-buffers-meta.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ var ProtocolBuffersMeta = function ProtocolBuffersMeta(options) {
99
util.inherits(ProtocolBuffersMeta, Meta);
1010

1111
ProtocolBuffersMeta.prototype.loadResponse = function(response) {
12+
13+
if(response.key !== undefined) this.key = response.key;
14+
1215
if (response.content !== undefined) {
1316
var content = response.content[0];
1417
this.contentType = content.content_type;

0 commit comments

Comments
 (0)