mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-07-26 09:24:08 +00:00
Add Content Type to print jwt; #170
This commit is contained in:
parent
aa6631c408
commit
4df76b79c7
1 changed files with 2 additions and 0 deletions
2
auth.go
2
auth.go
|
|
@ -84,7 +84,9 @@ func printToken(c *RequestContext, w http.ResponseWriter) (int, error) {
|
|||
return http.StatusInternalServerError, err
|
||||
}
|
||||
|
||||
|
||||
// Writes the token.
|
||||
w.Header().Set("Content-Type", "cty")
|
||||
w.Write([]byte(string))
|
||||
return 0, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue