From dc5f9290ab06e195bd0af576c592d6046eb296c7 Mon Sep 17 00:00:00 2001
From: Rohith <gambol99@gmail.com>
Date: Sat, 16 Jan 2016 00:30:09 +0000
Subject: [PATCH] - fixing the format on the handlers.go - fixing the typo on
 the tags for yaml config

---
 doc.go      | 2 +-
 handlers.go | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/doc.go b/doc.go
index fd2226d..479ab8e 100644
--- a/doc.go
+++ b/doc.go
@@ -117,7 +117,7 @@ type Config struct {
 	// Verbose switches on debug logging
 	Verbose bool `json:"verbose" yaml:"verbose"`
 	// Hostname is a list of hostnames the service should response to
-	Hostnames []string `json:"hostnames" yaml:"hostname"`
+	Hostnames []string `json:"hostnames" yaml:"hostnames"`
 }
 
 // KeycloakProxy is the server component
diff --git a/handlers.go b/handlers.go
index 9979e89..750985e 100644
--- a/handlers.go
+++ b/handlers.go
@@ -67,10 +67,10 @@ func (r *KeycloakProxy) loggingHandler() gin.HandlerFunc {
 func (r *KeycloakProxy) securityHandler() gin.HandlerFunc {
 	// step: create the security options
 	secure := secure.New(secure.Options{
-		AllowedHosts:          r.config.Hostnames,
-		BrowserXssFilter:      true,
-		ContentTypeNosniff:    true,
-		FrameDeny:             true,
+		AllowedHosts:       r.config.Hostnames,
+		BrowserXssFilter:   true,
+		ContentTypeNosniff: true,
+		FrameDeny:          true,
 	})
 
 	return func(cx *gin.Context) {
-- 
GitLab