Headers are now Linx-.. instead of X-...

This commit is contained in:
andreimarcu 2015-10-06 00:31:09 -04:00
parent ce73598f12
commit c5250e529e
4 changed files with 12 additions and 15 deletions

View file

@ -60,7 +60,7 @@ Dropzone.options.dropzone = {
deleteAction.addEventListener('click', function(ev) {
xhr = new XMLHttpRequest();
xhr.open("DELETE", resp.url, true);
xhr.setRequestHeader("X-Delete-Key", resp.delete_key);
xhr.setRequestHeader("Linx-Delete-Key", resp.delete_key);
xhr.onreadystatechange = function(file) {
if (xhr.readyState == 4 && xhr.status === 200) {
var text = document.createTextNode("Deleted ");