Skip to content

Commit

Permalink
crash hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
dileping committed Mar 6, 2016
1 parent 0791ef5 commit f27c61f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Express/Static.swift
Expand Up @@ -42,7 +42,9 @@ public class StaticFileProvider : StaticDataProviderType {

private func attributes(file:String) throws -> [String : Any] {
do {
return try self.fm.attributesOfItemAtPath(file)
return try self.fm.attributesOfItemAtPath(file).map { (k, v) in
(k, v as Any)
}
} catch {
throw ExpressError.FileNotFound(filename: file)
}
Expand Down

0 comments on commit f27c61f

Please sign in to comment.