Null value in data parm

10 views
Skip to first unread message

GG

unread,
Aug 30, 2012, 11:26:51 AM8/30/12
to jso...@googlegroups.com
When making a request and one of the data key/value pairs is null, it shows up in the body the signature base string.  Is that normal behavior?

Example:
the caption value is null and shows up in the body as caption=& but is no where to be found in the signature base string.

var options = {
method: 'POST',
success: upload_success,
failure: upload_fail,
  headerz: {
 'Host': 'http://endpoint.com/',
 'Expect': ''
  },
  data: {
   'data' : imageURI,
   'caption' : caption,
   'tags' : 'tags',
   'state' : 'draft',
   'type' : 'photo'  
  }
}

Rob Griffiths

unread,
Aug 30, 2012, 12:41:59 PM8/30/12
to jso...@googlegroups.com
If I recall correctly, empty params should be excluded from the signature, but its highly likely they should also be excluded from the body.
Reply all
Reply to author
Forward
0 new messages