Skip to content

Commit fb67770

Browse files
committed
[API] Generator: remove trailing / from paths
1 parent 9ea568f commit fb67770

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

elasticsearch-api/utils/thor/generate_source.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ def __http_path
161161

162162
def __parse_path(path)
163163
path.gsub(/^\//, '')
164+
.gsub(/\/$/, '')
164165
.gsub('{', '#{Elasticsearch::API::Utils.__listify(_')
165166
.gsub('}', ')}')
166167
end

0 commit comments

Comments
 (0)