Skip to content

Commit e0646ec

Browse files
committed
Add missing leading slash for the put mapping endpoint (fixes #969)
1 parent 830a6f6 commit e0646ec

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)