Skip to content

Commit

Permalink
Merge branch 'master' into fix/elastic#1962
Browse files Browse the repository at this point in the history
  • Loading branch information
stormpython committed Feb 3, 2015
2 parents cd3829c + e635822 commit a597a41
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/kibana/partials/saved_object_finder.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<span class="finder-hit-count"><strong>{{hitCount}}</strong> {{type}}</span>
</div>
</form>
<paginate list="hits" per-page="5">
<paginate list="hits | orderBy:'title'" per-page="5">
<ul class="list-group list-group-menu">
<a class="list-group-item list-group-menu-item"
ng-repeat="hit in page"
Expand Down
2 changes: 1 addition & 1 deletion src/kibana/plugins/settings/sections/objects/_objects.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h2>Edit Saved Objects</h2>
</div>
<div ng-repeat="service in services" ng-class="{ active: state.tab === service.title }" class="tab-pane">
<ul class="list-unstyled">
<li class="item" ng-repeat="item in service.data">
<li class="item" ng-repeat="item in service.data | orderBy:'title'">
<div class="actions pull-right">
<button
ng-click="edit(service, item)"
Expand Down
8 changes: 6 additions & 2 deletions src/server/routes/proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,19 @@ function getPort(req) {
router.use(function (req, res, next) {

var uri = _.defaults({}, target);

// Add a slash to the end of the URL so resolve doesn't remove it.
var path = (/\/$/.test(uri.path)) ? uri.path : uri.path + '/';
path = url.resolve(path, '.' + req.url);

var options = {
url: uri.protocol + '//' + uri.host + req.url,
url: uri.protocol + '//' + uri.host + path,
method: req.method,
headers: _.defaults({ host: target.hostname }, req.headers),
strictSSL: config.kibana.verify_ssl,
timeout: config.kibana.request_timeout
};


options.headers['x-forward-for'] = req.connection.remoteAddress || req.socket.remoteAddress;
options.headers['x-forward-port'] = getPort(req);
options.headers['x-forward-proto'] = req.connection.pair ? 'https' : 'http';
Expand Down

0 comments on commit a597a41

Please sign in to comment.