On 10/20/2014 12:01 PM, "Jan B. Kolář" wrote: > Dear all, > > so I checked source code by myself and find solution for my problem with > Nginx + rest.php (see previous emails). > > I don't know why, but Nginx need one more header in 401 response. So I > edited "include/fatal.php" file and added one line (bold): > >> function httpUnauthorized() >> { >> *header('WWW-Authenticate: Basic realm="My Realm"');* >> header("HTTP/1.0 401 Unauthorized"); >> exit(); >> } > > Without this header, Nginx is not asking for credentials on "rest.php" > file, so it was not possible to use dl with Thunderbird.
This doesn't cause any harm, but shouldn't be required at all.