-- cambio content-type de pdf, para corrección de descarga sobre ipad

This commit is contained in:
2024-06-21 14:47:42 -07:00
parent 7239c33198
commit 875d1e4f4f

View File

@@ -5426,12 +5426,12 @@ Public Class ClsPaginas
bytes = bytes
Response.Buffer = True
Response.Clear()
Response.ClearHeaders()
If Formato = "PDF" Then
Response.ContentType = "application/pdf"
Else
Response.ContentType = mimeType
End If
Response.ClearHeaders()
Dim fileExtension As String = ""
If Not String.IsNullOrEmpty(Extension) Then
fileExtension = Extension