Thanks Tim and all,

        my gathering is that the sample script on page 146 of the Eagle:
        - needed a 'use Apache::Constants(:common);' line
        - needed a 'return OK;' line at EOF
        - had an 'unless' that should've been an 'if'.

        for-the-record, I did check www.modperl.com looking for an
errata.
Doug? Lincoln? I mean, it's one of the *simple* scripts, I do LOVE the
book, but I guess I'll have to trust this list a hunderd times more than
the book.

        And, unless it was all my mistake, for some unbeknownst reason,
a few
marks down for O'Reilly technical reviewers :p


martin

Tim Tompkins wrote:
> 
> This should be an "if" instead of "unless"
> 
> return OK if $r->header_only;
> 
> header_only() will return true if the request method is HEAD.  You'll want
> to simply return OK once you've gathered all the necessary outgoing headers
> for HEAD requests.

Reply via email to