mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-17 22:03:44 +02:00
Pass one at unfucking the stupid file encoding issues
This commit is contained in:
@@ -2,7 +2,7 @@ import http from '@/api/http';
|
||||
|
||||
export default async (uuid: string, file: string, content: string): Promise<void> => {
|
||||
await http.post(`/api/client/servers/${uuid}/files/write`, content, {
|
||||
params: { file: encodeURI(decodeURI(file)) },
|
||||
params: { file },
|
||||
headers: {
|
||||
'Content-Type': 'text/plain',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user