-- cambio content-type de pdf, para corrección de descarga sobre ipad
This commit is contained in:
@@ -5426,12 +5426,12 @@ Public Class ClsPaginas
|
|||||||
bytes = bytes
|
bytes = bytes
|
||||||
Response.Buffer = True
|
Response.Buffer = True
|
||||||
Response.Clear()
|
Response.Clear()
|
||||||
|
Response.ClearHeaders()
|
||||||
If Formato = "PDF" Then
|
If Formato = "PDF" Then
|
||||||
Response.ContentType = "application/pdf"
|
Response.ContentType = "application/pdf"
|
||||||
Else
|
Else
|
||||||
Response.ContentType = mimeType
|
Response.ContentType = mimeType
|
||||||
End If
|
End If
|
||||||
Response.ClearHeaders()
|
|
||||||
Dim fileExtension As String = ""
|
Dim fileExtension As String = ""
|
||||||
If Not String.IsNullOrEmpty(Extension) Then
|
If Not String.IsNullOrEmpty(Extension) Then
|
||||||
fileExtension = Extension
|
fileExtension = Extension
|
||||||
|
|||||||
Reference in New Issue
Block a user