Skip to content

text/rude-rejection #14

@puzhengwu

Description

@puzhengwu

func Dial(addr, passwd string) (*Connection, error) {
c, err := net.Dial("tcp", addr)
if err != nil {
return nil, err
}
h := newConnection(c)
m, err := h.textreader.ReadMIMEHeader()
if err != nil {
c.Close()
return nil, err
}
if m.Get("Content-Type") != "auth/request" { //text/rude-rejection
c.Close()
return nil, errMissingAuthRequest
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions