| Index: third_party/polymer/components/iron-form/iron-form.html
|
| diff --git a/third_party/polymer/components/iron-form/iron-form.html b/third_party/polymer/components/iron-form/iron-form.html
|
| index 4e39f670fadb300e4c7cfe4619c7ae07ad730082..53101ad6b76c7ee5ef0e5e40bf2cce94d212684f 100644
|
| --- a/third_party/polymer/components/iron-form/iron-form.html
|
| +++ b/third_party/polymer/components/iron-form/iron-form.html
|
| @@ -234,7 +234,7 @@ event and do your own custom submission:
|
| // this up if I tried) so we need to get the correct attributes, not the
|
| // elements with those names.
|
| this.request.url = this.getAttribute('action');
|
| - this.request.method = this.getAttribute('method');
|
| + this.request.method = this.getAttribute('method') || 'GET';
|
| this.request.contentType = this.contentType;
|
| this.request.withCredentials = this.withCredentials;
|
| this.request.headers = this.headers;
|
| @@ -292,7 +292,7 @@ event and do your own custom submission:
|
| function addSerializedElement(name, value) {
|
| // If the name doesn't exist, add it. Otherwise, serialize it to
|
| // an array,
|
| - if (!json[name]) {
|
| + if (json[name] === undefined) {
|
| json[name] = value;
|
| } else {
|
| if (!Array.isArray(json[name])) {
|
|
|