Skip to content

Commit

Permalink
Merge pull request #176 from andersonmat/master
Browse files Browse the repository at this point in the history
Fix to allow key retrieval when using protocol buffers
  • Loading branch information
roidrage committed Jun 6, 2013
2 parents ff4402a + 7990ab2 commit c2acbb7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/protocol-buffers-meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ var ProtocolBuffersMeta = function ProtocolBuffersMeta(options) {
util.inherits(ProtocolBuffersMeta, Meta);

ProtocolBuffersMeta.prototype.loadResponse = function(response) {

if(response.key !== undefined) this.key = response.key;

if (response.content !== undefined) {
var content = response.content[0];
this.contentType = content.content_type;
Expand Down

0 comments on commit c2acbb7

Please sign in to comment.