Skip to content

Commit

Permalink
Remove unnecessary message
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed May 3, 2024
1 parent c511efd commit 8cb18a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Hummingbird/Middleware/FileMiddleware.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public struct FileMiddleware<Context: BaseRequestContext, Provider: FileProvider

// file paths that contain ".." are considered illegal
guard !path.contains("..") else {
throw HTTPError(.badRequest, message: "URLs including '..' are not supported")
throw HTTPError(.badRequest)
}

let fullPath = self.fileProvider.getFullPath(path)
Expand Down

0 comments on commit 8cb18a0

Please sign in to comment.