Using http_daemon with --debug

Not sure if this is a minor bug in the documentation or the implementation:
The docs about http_daemon say:

the argument to `--debug`= is a Prolog term

but if I use it with single quotes I get an error:

atom_to_term/3: Type error: `text' expected, found `http(request)' (a compound)

Single quotes inside double quotes work, but deviates from the documentation:

--debug="'http(request)'"

Kinde regards,
Wolfram