mirror of
https://github.com/openfaas/faas.git
synced 2025-06-20 13:06:40 +00:00
upgraded angularjs from 1.5.5 to 1.6.9
The $https service deprecated the `success` method, so changed `success` to `then`. This will fix #528 Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
This commit is contained in:
6
gateway/assets/script/bootstrap.js
vendored
6
gateway/assets/script/bootstrap.js
vendored
@ -91,9 +91,9 @@ app.controller("home", ['$scope', '$log', '$http', '$location', '$timeout', '$md
|
||||
}
|
||||
|
||||
$http(options)
|
||||
.success(function (data, status, headers) {
|
||||
|
||||
var headerMap = headers();
|
||||
.then(function (response) {
|
||||
var data = response.data;
|
||||
var status = response.status;
|
||||
|
||||
if($scope.invocation.contentType == "binary") {
|
||||
var filename = uuidv4();
|
||||
|
Reference in New Issue
Block a user