Subject: | O_RDONLY |
1. In _get_fh method (line 142):
$mode ||= O_RDWR;
But then you give O_RDONLY mode value for this method, you actually give it zero value, so it's always will be opened for read-write.
Fix: $mode = O_RDWR unless defined $mode;
2. In parse_http_file method (line 362):
Calling _get_fh without O_RDONLY, but this method doesn't need writing capabilities... Adding O_RDONLY will be appreciated.
Thanks.
--
neyuki