mirror of
https://github.com/wg-easy/wg-easy.git
synced 2026-10-25 00:05:09 +00:00
Fixed a bug causing .conf.txt download on Android affecting Firefox based Android browsers. (#2269)
* Fixed a bug causing .conf.txt download on Android ... affecting Firefox based Android browsers. * change content-type --------- Co-authored-by: Badri Isiani <badri@loonartech.net> Co-authored-by: Bernd Storath <999999bst@gmail.com>
This commit is contained in:
parent
502fe718d5
commit
a8ba7f7247
2 changed files with 2 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ export default definePermissionEventHandler(
|
|||
`attachment; filename="${WireGuard.cleanClientFilename(client.name) || clientId}.conf"`
|
||||
);
|
||||
|
||||
setHeader(event, 'Content-Type', 'text/plain');
|
||||
setHeader(event, 'Content-Type', 'application/octet-stream');
|
||||
return config;
|
||||
}
|
||||
);
|
||||
|
|
|
|||
|
|
@ -32,6 +32,6 @@ export default defineEventHandler(async (event) => {
|
|||
'Content-Disposition',
|
||||
`attachment; filename="${WireGuard.cleanClientFilename(client.name) || client.id}.conf"`
|
||||
);
|
||||
setHeader(event, 'Content-Type', 'text/plain');
|
||||
setHeader(event, 'Content-Type', 'application/octet-stream');
|
||||
return config;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue