Skip to content

Commit 011fd17

Browse files
authored
Merge pull request #970 from chrispappas/fix/969
Add missing leading slash for the put mapping endpoint (fixes #969)
2 parents 830a6f6 + e0646ec commit 011fd17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elasticsearch/Endpoints/Indices/PutMapping.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function getURI(): string
3535
return "/_mappings/$type";
3636
}
3737
if (isset($index)) {
38-
return "$index/_mapping";
38+
return "/$index/_mapping";
3939
}
4040
throw new RuntimeException('Missing parameter for the endpoint indices.put_mapping');
4141
}

0 commit comments

Comments
 (0)