Skip to content

Commit

Permalink
Set content-type for config to avoid .txt suffixes on some devices
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Lundin committed Oct 9, 2019
1 parent 2c04663 commit 8fae238
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,7 @@ Endpoint = %s
if format == "config" {
filename := fmt.Sprintf("%s.conf", client.Name)
w.Header().Set("Content-Disposition", fmt.Sprintf("attachment; filename=\"%s\"", filename))
w.Header().Set("Content-Type", "application/config")
w.WriteHeader(http.StatusOK)
fmt.Fprintf(w, configData)
return
Expand Down
1 change: 0 additions & 1 deletion ui/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ main {
footer {
margin-top: 3em;
border-top: 1px solid #ddd;
padding-bottom: 2em;
text-align: center;
background: #f7f7f7;
}
Expand Down
Binary file modified wireguard-ui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8fae238

Please sign in to comment.