Support for Www-Authenticate: NTLM

This commit is contained in:
Lauris Bukšis-Haberkorns
2017-01-27 14:39:00 +02:00
parent 2d5c786339
commit c70fcef895
2 changed files with 19 additions and 5 deletions

View File

@@ -15,6 +15,10 @@ func (h authheader) IsNegotiate() bool {
return strings.HasPrefix(string(h), "Negotiate")
}
func (h authheader) IsNTLM() bool {
return strings.HasPrefix(string(h), "NTLM")
}
func (h authheader) GetData() ([]byte, error) {
p := strings.Split(string(h), " ")
if len(p) < 2 {