Initial components for encryption settings
This commit is contained in:
committed by
Eugene Bujak
parent
8725c1df7a
commit
7451eb1346
@@ -1038,7 +1038,7 @@ func handleTLSStatus(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
func handleTLSConfigure(w http.ResponseWriter, r *http.Request) {
|
||||
newconfig := tlsConfig{}
|
||||
err := json.NewDecoder(r.body).Decode(&newconfig)
|
||||
err := json.NewDecoder(r.Body).Decode(&newconfig)
|
||||
if err != nil {
|
||||
httpError(w, http.StatusBadRequest, "Failed to parse new TLS config json: %s", err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user