https://sourceware.org/bugzilla/show_bug.cgi?id=33635
Aaron Merey <amerey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |amerey at redhat dot com
--- Comment #6 from Aaron Merey <amerey at redhat dot com> ---
(In reply to Martin Cermak from comment #5)
> Created attachment 16482 [details]
> updated patch
>
> Ugh, we only want that redirection if document root is requested! Updated
> patch attached.
Thanks for the patch Martin. `--homepage https://redirect.url` works for me,
but when I run `debuginfod -p 8002 -h local.html` and visit localhost:8002/, I
get "webapi error, unrecognized '/local.html'".
Debuginfod replies with the expected 302 response containing "Location:
/local.html", but when the client follows the redirect and requests
/local.html, the server doesn't know how to handle that path. If --homepage
refers to a local .html file I think we should just serve that file when
replying to a "/" request. Otherwise we'd have to handle (and expose) the
cust_homepage path in handler_cb, which I don't think we should do.
Also if it's not too much extra work, could you please include a couple
testcases for --homepage?
--
You are receiving this mail because:
You are on the CC list for the bug.