mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-17 12:42:16 +01:00
removing PDF from authorized content types in the error
This commit is contained in:
@@ -20,7 +20,7 @@ const (
|
|||||||
type notAuthorizedContentTypeError struct{}
|
type notAuthorizedContentTypeError struct{}
|
||||||
|
|
||||||
func (e *notAuthorizedContentTypeError) Error() string {
|
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) {
|
func FindAuthorizedContentType(h http.Header) (ContentType, error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user