Add Accept: text/html header when processing an index

Fixes #1431