Ticket #201: paste-bug-201.diff

File paste-bug-201.diff, 0.7 KB (added by Jim Dabell, 5 years ago)

Fix for #201

  • wdg_validate.py

    diff -ru debug-old/wdg_validate.py debug-new/wdg_validate.py
    old new  
    6060        page = output.getvalue() 
    6161        status, headers = response 
    6262        v = wsgilib.header_value(headers, 'content-type') 
    63         if (not v.startswith('text/html') 
    64             and not v.startswith('text/xhtml+xml')): 
     63        if (v is None or (not v.startswith('text/html') 
     64            and not v.startswith('text/xhtml+xml'))): 
    6565            # Can't validate 
    6666            # @@: Should validate CSS too... but using what? 
    6767            return [page]