I hereby claim:
- I am forestmaxime on github.
- I am forestmaxime (https://keybase.io/forestmaxime) on keybase.
- I have a public key ASAYUfKyDUYPK2DU9esZDYtGAoDDU7sbUu65C8d778oTyAo
To claim this, I am signing this object:
test |
I hereby claim:
To claim this, I am signing this object:
var filename = ""; | |
var disposition = xhr.getResponseHeader('Content-Disposition'); | |
if (disposition && disposition.indexOf('attachment') !== -1) { | |
var filenameRegex = /filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/; | |
var matches = filenameRegex.exec(disposition); | |
if (matches != null && matches[1]) filename = matches[1].replace(/['"]/g, ""); | |
} | |
var contentType = xhr.getResponseHeader("Content-Type"); | |
var blob = this.b64ToBlob(response, contentType); |