Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected response from incomplete url #406

Closed
mingard opened this issue Jul 26, 2018 · 3 comments
Closed

Unexpected response from incomplete url #406

mingard opened this issue Jul 26, 2018 · 3 comments

Comments

@mingard
Copy link
Contributor

mingard commented Jul 26, 2018

When there is a notFound image set and an incomplete url e.g. /path/to/image rather than /path/to/image/foo.jpg, a text/html response is returned but with the body of the notFound image.

The expected response would be the same JSON formatted message expected when notFound is not set.

Tested with:

 "notFound": {
    "statusCode": 410,
    "images": {
      "enabled": true,
      "path": "./images/missing.png"
    }
  }
@jimlambie
Copy link
Contributor

@mingard which storage handler is this using? disk or remote?

@mingard
Copy link
Contributor Author

mingard commented Jul 31, 2018

Remote: S3. Fallback is local.

@jimlambie
Copy link
Contributor

Closed via 55754dc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants