Skip to content

StaticFile.fromurl("") does not handle exceptions #3565

@dubinsky

Description

@dubinsky

When there is no object at the url specified, url.openStream causes StaticFile.fromurl("") effect to throw FileNotFoundException instead of returning (the equivalent of) None: see
https://github.com/http4s/http4s/blob/master/core/src/main/scala/org/http4s/StaticFile.scala#L93

Is there anything I can do at the place of the call to work around this while waiting for the fix?
Thanks!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions