Skip to content

Commit

Permalink
Fix crash and add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
nodauf committed Jan 26, 2022
1 parent add98b0 commit 2fb5ee6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/owa/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (options *Options) getURIToAuthenticate(host string) string {

// webRequestCodeResponse request an URI and return the status code
func (options *Options) webRequestCodeResponse(URI string) int {

options.Log.Debug("Checking " + URI)
timeout := time.Duration(3 * time.Second)
client := &http.Client{
Timeout: timeout,
Expand All @@ -100,6 +100,7 @@ func (options *Options) webRequestCodeResponse(URI string) int {
resp, err := client.Do(req)
if err != nil {
options.Log.Error(err.Error())
return 0
}
return resp.StatusCode
}
Expand Down

0 comments on commit 2fb5ee6

Please # to comment.