Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
fix(download): send credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
Christine Yu committed Jun 5, 2015
1 parent 97c5a5e commit 244e413
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/scripts/files/files.services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ module ngApp.files.services {
download(endpoint: string, ids: Array<string>) {
var abort = this.$q.defer();
var params = { "ids": ids };
this.RestFullResponse.all(endpoint)
this.RestFullResponse.all(endpoint + "?annotations=true")
.withHttpConfig({
timeout: abort.promise,
responseType: "blob"
responseType: "blob",
withCredentials: true
})
.post(params, undefined, { 'Content-Type': 'application/json' })
.then((response) => {
Expand Down

0 comments on commit 244e413

Please sign in to comment.