We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent add98b0 commit 2fb5ee6Copy full SHA for 2fb5ee6
src/modules/owa/utils.go
@@ -89,7 +89,7 @@ func (options *Options) getURIToAuthenticate(host string) string {
89
90
// webRequestCodeResponse request an URI and return the status code
91
func (options *Options) webRequestCodeResponse(URI string) int {
92
-
+ options.Log.Debug("Checking " + URI)
93
timeout := time.Duration(3 * time.Second)
94
client := &http.Client{
95
Timeout: timeout,
@@ -100,6 +100,7 @@ func (options *Options) webRequestCodeResponse(URI string) int {
100
resp, err := client.Do(req)
101
if err != nil {
102
options.Log.Error(err.Error())
103
+ return 0
104
}
105
return resp.StatusCode
106
0 commit comments