Skip to content

Commit

Permalink
gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
unrolled committed Jun 18, 2018
1 parent a1cf62c commit 8287f38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion secure.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func (s *Secure) processRequest(w http.ResponseWriter, r *http.Request) (http.He
}

if s.opt.SSLForceHost {
var SSLHost = host;
var SSLHost = host
if s.opt.SSLHostFunc != nil {
if h := (*s.opt.SSLHostFunc)(host); len(h) > 0 {
SSLHost = h
Expand Down
4 changes: 2 additions & 2 deletions secure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1066,8 +1066,8 @@ func TestSSLForceHostWithHTTPS(t *testing.T) {

func TestSSLForceHostWithHTTP(t *testing.T) {
s := New(Options{
SSLHost: "secure.example.com",
SSLForceHost: true,
SSLHost: "secure.example.com",
SSLForceHost: true,
})

res := httptest.NewRecorder()
Expand Down

0 comments on commit 8287f38

Please sign in to comment.