osamingo/jsonrpc

View on GitHub

Showing 1 of 2 total issues

Function ParseRequest has 9 return statements (exceeds 4 allowed).
Open

func ParseRequest(r *http.Request) ([]*Request, bool, *Error) {
    var rerr *Error

    if !strings.HasPrefix(r.Header.Get(contentTypeKey), contentTypeValue) {
        return nil, false, ErrInvalidRequest()
Severity: Major
Found in jsonrpc.go - About 55 mins to fix
    Severity
    Category
    Status
    Source
    Language