From b63a944cb2b0f0ac2c051f60877450550f0af55c Mon Sep 17 00:00:00 2001 From: Chteufleur Date: Mon, 15 Aug 2016 22:21:50 +0200 Subject: [PATCH] Fix typo on http_timeout_sec --- README.md | 2 +- httpAuth.cfg | 2 +- main.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d3ef6ca..c640a25 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ HTTP * https_port : HTTPS port to bind (default: 9093, desactive: -1) * https_cert_path : Path to the certificate file (default: ./cert.pem) * https_key_path : Path to the key file (default: ./key.pem) - * http_timeoute_sec : Define a timeout if user did not give an answer to the request (default: 60) + * http_timeout_sec : Define a timeout if user did not give an answer to the request (default: 60) __Bold config__ are mandatory. diff --git a/httpAuth.cfg b/httpAuth.cfg index 27d0c03..02fb041 100644 --- a/httpAuth.cfg +++ b/httpAuth.cfg @@ -11,4 +11,4 @@ http_port=9090 https_port=9093 https_cert_path=./cert.pem https_key_path=./key.pem -http_timeoute_sec=60 +http_timeout_sec=60 diff --git a/main.go b/main.go index b443a4e..382f292 100644 --- a/main.go +++ b/main.go @@ -32,7 +32,7 @@ func init() { } // HTTP config - httpTimeout, err := strconv.Atoi(mapConfig["http_timeoute_sec"]) + httpTimeout, err := strconv.Atoi(mapConfig["http_timeout_sec"]) if err == nil && httpTimeout > 0 && httpTimeout < http.MaxTimeout { log.Println("Define HTTP timeout to " + strconv.Itoa(httpTimeout) + " second") http.TimeoutSec = httpTimeout