fix #1481 file uploads from behind a reverse proxy
This commit is contained in:
parent
983c9dad99
commit
c87245320d
@ -1,6 +1,6 @@
|
|||||||
/*!
|
/*!
|
||||||
* Deluge.add.File.js
|
* Deluge.add.File.js
|
||||||
*
|
*
|
||||||
* Copyright (c) Damien Churchill 2009-2010 <damoxc@gmail.com>
|
* Copyright (c) Damien Churchill 2009-2010 <damoxc@gmail.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -78,7 +78,7 @@ Deluge.add.FileWindow = Ext.extend(Deluge.add.Window, {
|
|||||||
if (this.form.getForm().isValid()) {
|
if (this.form.getForm().isValid()) {
|
||||||
this.torrentId = this.createTorrentId();
|
this.torrentId = this.createTorrentId();
|
||||||
this.form.getForm().submit({
|
this.form.getForm().submit({
|
||||||
url: '/upload',
|
url: deluge.config.base + 'upload',
|
||||||
waitMsg: _('Uploading your torrent...'),
|
waitMsg: _('Uploading your torrent...'),
|
||||||
failure: this.onUploadFailure,
|
failure: this.onUploadFailure,
|
||||||
success: this.onUploadSuccess,
|
success: this.onUploadSuccess,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user