Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Commit

Permalink
feat(gateway): Add follow HTTP redirect option at endpoint level
Browse files Browse the repository at this point in the history
  • Loading branch information
brasseld committed Oct 11, 2017
1 parent d07171a commit e943b4d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
Expand Up @@ -54,7 +54,8 @@ class ApiEndpointController {
readTimeout : 10000,
pipelining : false,
maxConcurrentConnections : 100,
useCompression : true
useCompression : true,
followRedirects : false
}
};

Expand Down
13 changes: 13 additions & 0 deletions src/management/api/endpoint/endpointConfiguration.html
Expand Up @@ -142,6 +142,19 @@
</md-checkbox>
</div>

<div layout-xs="column" flex-xs="50">
<md-checkbox
ng-model="endpointCtrl.endpoint.http.followRedirects"
aria-label="Enables follow HTTP redirections"
class="md-align-top-left" flex>
Follow HTTP redirections<br/>
<span class="ipsum">
when the client receives an <code>301</code>, <code>302</code>, <code>303</code> or <code>307</code> status code,
it follows the redirection provided by the <code>Location</code> response header
</span>
</md-checkbox>
</div>

<div layout-xs="column" flex-xs="50">
<md-input-container class="md-block" flex-gt-sm>
<label>Override Host header</label>
Expand Down

0 comments on commit e943b4d

Please sign in to comment.