July 18, 20169 yr Currently, emhttp is checking for an "Authorization" header. I guess it's something like: if (header == "Authorization") ... Could you make it case-insensitive ? if (lowercase(header) == "authorization") ... The http standard says header fields should be case-insensitive http://www.ietf.org/rfc/rfc2616.txt 4.2 Message Headers HTTP header fields, which include general-header (section 4.5), request-header (section 5.3), response-header (section 6.2), and entity-header (section 7.1) fields, follow the same generic format as that given in Section 3.1 of RFC 822 [9]. Each header field consists of a name followed by a colon (":") and the field value. Field names are case-insensitive. Just wondering if you'd be open to such a change.
October 19, 20196 yr Author Apologies for reviving this thread, I remembered I had asked for this before. I'm trying to implement support for 6.8.x in the ControlR app and I'm using axios (a javascript http client library) now to connect to the server. axios lower-cases request headers and I'm getting rejected by Unraid when sending an 'authorization: ...'. Before axios, I was using an ad-hoc library that is a burden to maintain, but it didn't lower-case headers, so when I sent 'Authorization: ...' it worked. Maybe this change fell through the cracks at some point in time Let me know if that's actually the case and if you can get it in for 6.8.x.
Archived
This topic is now archived and is closed to further replies.