diff --git a/app/app/components/user-profile.js b/app/app/components/user-profile.js index 02677076..cfee8da6 100644 --- a/app/app/components/user-profile.js +++ b/app/app/components/user-profile.js @@ -45,10 +45,6 @@ export default Ember.Component.extend(AuthProvider, { } }), - didReceiveAttrs() { - this.set - }, - actions: { save() { let password = this.get('password.password'); diff --git a/core/api/endpoint/server.go b/core/api/endpoint/server.go index f82ab8d3..317211bd 100644 --- a/core/api/endpoint/server.go +++ b/core/api/endpoint/server.go @@ -121,6 +121,7 @@ func Serve(ready chan struct{}) { go func() { err := http.ListenAndServe(":"+forcePort2SSL, http.HandlerFunc( func(w http.ResponseWriter, req *http.Request) { + w.Header().Set("Connection", "close") var host = strings.Replace(req.Host, forcePort2SSL, port, 1) + req.RequestURI http.Redirect(w, req, "https://"+host, http.StatusMovedPermanently) }))