Skip Menu |
 

This queue is for tickets about the Net-HTTPServer CPAN distribution.

Report information
The Basics
Id: 13165
Status: resolved
Priority: 0/
Queue: Net-HTTPServer

People
Owner: reatmon [...] mail.com
Requestors: waz [...] easynet.co.uk
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.1.1
Fixed in: (no value)



Subject: RequestAuth fails for '/'
Download (untitled) / with headers
text/plain 724b
If you provide a filepath of '/' to RequestAuth, the _checkAuth function fails to work properly and does not password protect the default document root index page after all. My server is not serving actual files - document root is set to undef - instead I have a hard-wired list of url paths each of which triggers a different callback. However, the callback attached to the path '/' does not bring up a password prompt as expected. This is a problem for me since I need to password protect every page served without exception. I attach a patch I have created containing a one-line fix which solves the problem. Thank you for writing Net-HTTPServer. (This is Net-HTTPServer 1.1.1, running on Perl 5.8.6 on Linux 2.4.20).
Download wm-patch
application/octet-stream 351b

Message body not shown because it is not plain text.



This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.