Ticket #201 (closed defect: fixed)

Opened 4 years ago

Last modified 3 years ago

wdg_validate throws exception when Content-Type header is not present

Reported by: Jim Dabell Owned by: ianb
Priority: normal Milestone: 1.4.2
Component: paste Version: svn-trunk
Severity: normal Keywords:
Cc:

Description

wdg_validate calls string methods on the Content-Type header, which fails when a header has not been set. This patch makes it skip validation for content that has no Content-Type header, which has the same effect as when an unrecognised Content-Type header is found.

Attachments

paste-bug-201.diff Download (0.7 KB) - added by Jim Dabell 4 years ago.
Fix for #201

Change History

Changed 4 years ago by Jim Dabell

Fix for #201

Changed 4 years ago by ianb

  • status changed from new to closed
  • resolution set to fixed

Fixed in r7013

Note: See TracTickets for help on using tickets.