Luracast / Restler

Simple and effective multi-format Web API Server to host your PHP API as Pragmatic REST and/or RESTful API
http://luracast.com/products/restler/
GNU Lesser General Public License v2.1
1.36k stars 316 forks source link

WWW-Authenticate http header not sent #317

Closed NicolasCayet closed 10 years ago

NicolasCayet commented 10 years ago

Hi,

I wish notify you that usage of __getWWWAuthenticateString on first authClass in Luracast\Restler\Restler -> respond() seems to be useless, because it should set the WWW-Authenticate HTTP header, but @header(...) is called after response rendering. Then, it generates a "PHP Warning: Cannot modify header information - headers already sent..." (when unprepending the @-operator) and HTTP header is never set.

restler-issue-www-auth-header

Arul- commented 10 years ago

Thanks for bringing it to our attention :+1: Fixing it ASAP!