Serve image to embedded show urls #276
1 changed files with 6 additions and 0 deletions
|
@ -110,6 +110,9 @@ module.exports = (app) => {
|
|||
}
|
||||
} else {
|
||||
method = SHOW;
|
||||
if (!headers['accept'] || !headers['accept'].split(',').includes('text/html')) {
|
||||
method = SERVE;
|
||||
}
|
||||
}
|
||||
/* patch for backwards compatability with spee.ch/name/claim_id */
|
||||
if (isValidShortIdOrClaimId(name) && !isValidShortIdOrClaimId(identifier)) {
|
||||
|
@ -226,6 +229,9 @@ module.exports = (app) => {
|
|||
logger.debug('file extension =', fileExtension);
|
||||
} else {
|
||||
method = SHOW;
|
||||
if (!headers['accept'] || !headers['accept'].split(',').includes('text/html')) {
|
||||
method = SERVE;
|
||||
}
|
||||
}
|
||||
logger.debug('claim name = ', name);
|
||||
logger.debug('method =', method);
|
||||
|
|
Loading…
Reference in a new issue