diff --git a/iron-request.html b/iron-request.html
index 0bb3b7f..a4419f2 100644
--- a/iron-request.html
+++ b/iron-request.html
@@ -436,11 +436,16 @@
}
var pieces = [];
Object.keys(object).forEach(function(key) {
- // TODO(rictic): handle array values here, in a consistent way with
- // iron-ajax params.
- pieces.push(
- this._wwwFormUrlEncodePiece(key) + '=' +
- this._wwwFormUrlEncodePiece(object[key]));
+ if( !Array.isArray(object[key])) {
+ // Cast to array.
+ object[key] = [object[key]];
+ }
+
+ for( var i = 0; i < object[key].length; i++ ) {
+ pieces.push(
+ this._wwwFormUrlEncodePiece(key) + '=' +
+ this._wwwFormUrlEncodePiece(object[key][i]));
+ }
}, this);
return pieces.join('&');
},