Open ilopmar opened 4 years ago
According to RFC 2616 - Hypertext Transfer Protocol -- HTTP/1.1, Section 4.2, "Message Headers"
Each header field consists of a name followed by a colon (":") and the field value. Field names are case-insensitive
But the implementation when uploading files as multipart/form checks that the headers are capitalized: https://github.com/department-of-veterans-affairs/vets-api/blob/master/modules/vba_documents/lib/vba_documents/multipart_parser.rb#L64
Leading to an upload failure. That code (and any other code that check for header names) should be updated with a case-insensitive check of the headers.
@charleystran Did you see this one?
According to RFC 2616 - Hypertext Transfer Protocol -- HTTP/1.1, Section 4.2, "Message Headers"
But the implementation when uploading files as multipart/form checks that the headers are capitalized: https://github.com/department-of-veterans-affairs/vets-api/blob/master/modules/vba_documents/lib/vba_documents/multipart_parser.rb#L64
Leading to an upload failure. That code (and any other code that check for header names) should be updated with a case-insensitive check of the headers.