Skip to content

Commit 9c620c2

Browse files
committed
Index creation only accepts PUT verbs now
1 parent 72f3b15 commit 9c620c2

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Elasticsearch/Endpoints/Indices/Create.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,6 @@ public function getParamWhitelist()
7272
*/
7373
public function getMethod()
7474
{
75-
if (is_array($this->body) && isset($this->body['mappings']) === true) {
76-
return 'POST';
77-
} elseif (is_object($this->body) && isset($this->body->mappings) === true) {
78-
return 'POST';
79-
}
8075
return 'PUT';
8176
}
8277
}

0 commit comments

Comments
 (0)