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:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user