mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-16 12:46:27 +00:00
Merge pull request #250 from NumEricR/dl-export
Force download on poche export
This commit is contained in:
commit
fbe8e27568
1 changed files with 8 additions and 0 deletions
8
.htaccess
Normal file
8
.htaccess
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
Options +FollowSymlinks
|
||||||
|
RewriteEngine On
|
||||||
|
RewriteRule ^dl/export_poche.json$ ?export [L]
|
||||||
|
|
||||||
|
# Force download
|
||||||
|
RewriteCond %{QUERY_STRING} =export
|
||||||
|
RewriteRule ([^/]*)$ - [L,E=dl:$1]
|
||||||
|
Header onsuccess set Content-disposition "attachment; filename=%{dl}e" env=dl
|
Loading…
Reference in a new issue