Serve image to embedded show urls #276

Merged
bones7242 merged 2 commits from serve-image-to-embedded-show-urls into master 2017-11-28 22:37:11 +01:00
Showing only changes of commit 1734f20f01 - Show all commits

View file

@ -109,10 +109,9 @@ module.exports = (app) => {
method = SERVE; method = SERVE;
} }
} else { } else {
method = SHOW;
if (!headers['accept'] || !headers['accept'].split(',').includes('text/html')) { if (!headers['accept'] || !headers['accept'].split(',').includes('text/html')) {
method = SERVE; method = SERVE;
} else {
method = SHOW;
} }
} }
/* patch for backwards compatability with spee.ch/name/claim_id */ /* patch for backwards compatability with spee.ch/name/claim_id */