removing PDF from authorized content types in the error

This commit is contained in:
Julien Neuhart
2018-03-30 17:06:12 +02:00
parent a4ee269fbc
commit 1ae7f1fe72

View File

@@ -20,7 +20,7 @@ const (
type notAuthorizedContentTypeError struct{}
func (e *notAuthorizedContentTypeError) Error() string {
return fmt.Sprintf("Accepted values for 'Content-Type': %s, %s, %s, %s", PDFContentType, HTMLContentType, OctetStreamContentType, MultipartFormDataContentType)
return fmt.Sprintf("Accepted values for 'Content-Type': %s, %s, %s, %s", HTMLContentType, OctetStreamContentType, MultipartFormDataContentType)
}
func FindAuthorizedContentType(h http.Header) (ContentType, error) {