mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-17 04:32:15 +01:00
improving code coverage
This commit is contained in:
@@ -43,8 +43,10 @@ func FindAuthorizedContentType(h http.Header) (ContentType, error) {
|
||||
|
||||
type notAuthorizedFileContentTypeError struct{}
|
||||
|
||||
const notAuthorizedFileContentTypeErrorMessage = "Unable to detect an authorized file content type"
|
||||
|
||||
func (e *notAuthorizedFileContentTypeError) Error() string {
|
||||
return fmt.Sprintf("Unable to detect a file content type")
|
||||
return notAuthorizedFileContentTypeErrorMessage
|
||||
}
|
||||
|
||||
// SniffContentType tries to detect the content type of a file.
|
||||
|
||||
Reference in New Issue
Block a user