HTTP Basic Authentication must add a "WWW-Authenticate" header on unauthorized requests.

Some clients (i.e. lynx) will not work properly without this.

This patch uses hook_rest_server_execute_errors_alter() which was introduced in the services module version 3.3 and will have no
effect on versions prior to this (but won't harm either).

Comments

arnested’s picture

Status: Active » Needs review
StatusFileSize
new1.19 KB
arnested’s picture

The hook should probably be implemented in the .module file and not in .inc file. Otherwise no changes.

jherencia’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.