Commit fc02e9dc authored by Aleksandr Gumroian's avatar Aleksandr Gumroian
Browse files

Merge branch 'fix-ovpn-headers' into 'master'

Add special MIME type header to .ovpn files

Closes #28

See merge request !54
parents 0dcd9e1a 81ff6551
Pipeline #91453 passed with stage
in 3 minutes and 16 seconds
......@@ -107,7 +107,11 @@ def get_client(client_id):
name = response.get('name')
return make_response((config, {'Content-Disposition': f'attachment; filename={name}.ovpn'}))
response = make_response(config)
response.headers['Content-Disposition'] = f'attachment; filename={name}.ovpn'
response.headers['Content-Type'] = 'application/x-openvpn-profile'
return response
@blueprint.route('/clients/<client_id>', methods=['DELETE'])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment