[UTIL] Changed, that JSON generator sorts API `parts` and `params`

This commit is contained in:
Karel Minarik 2013-05-26 12:18:40 +02:00
parent a55750dd70
commit 530c9c8ebf
1 changed files with 2 additions and 2 deletions

View File

@ -75,10 +75,10 @@ module Elasticsearch
name.gsub! /admin\./, ''
# Extract params
url_params = content.scan(PATTERN_URL_PARAMS).map { |n| n.first }
url_params = content.scan(PATTERN_URL_PARAMS).map { |n| n.first }.sort
# Extract parts
url_parts = content.scan(PATTERN_URL_PARTS).map { |n| n.first }
url_parts = content.scan(PATTERN_URL_PARTS).map { |n| n.first }.sort
# Extract if body allowed
has_body = !!content.match(PATTERN_HAS_BODY)