1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 03:54:10 +01:00

[ticket/14049] Use headers from config when sending Plupload delete request.

PHPBB3-14049
This commit is contained in:
Cesar G 2015-07-25 18:56:19 -07:00
parent f34f28f283
commit ff67a09724

View File

@ -281,7 +281,7 @@ phpbb.plupload.deleteFile = function(row, attachId) {
$.ajax(phpbb.plupload.config.url, {
type: 'POST',
data: $.extend(fields, phpbb.plupload.getSerializedData()),
headers: { 'X-PHPBB-USING-PLUPLOAD': '1', 'X-Requested-With': 'XMLHttpRequest' }
headers: phpbb.plupload.config.headers
})
.always(always)
.done(done);