more logging
This commit is contained in:
@@ -121,8 +121,14 @@ func (l Negotiator) RoundTrip(req *http.Request) (res *http.Response, err error)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
// debugging
|
||||
PrintDebug("Received NTLM Type 2 Challenge: %s", base64.StdEncoding.EncodeToString(challengeMessage))
|
||||
DecodeNTLMMessage(challengeMessage)
|
||||
|
||||
if !(resauth.IsNegotiate() || resauth.IsNTLM()) || len(challengeMessage) == 0 {
|
||||
// Negotiation failed, let client deal with response
|
||||
PrintDebug("Negotiation failed")
|
||||
return res, nil
|
||||
}
|
||||
io.Copy(io.Discard, res.Body)
|
||||
|
Reference in New Issue
Block a user