Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Make Authorization header field case insensitive

Featured Replies

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.

  • 3 years later...
  • 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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.