28 #include "CodError.h" |
29 #include "CodError.h" |
29 #include "CodUtil.h" |
30 #include "CodUtil.h" |
30 #include "Connection.h" |
31 #include "Connection.h" |
31 #include "Timeout.h" |
32 #include "Timeout.h" |
32 #include "CodProgress.h" |
33 #include "CodProgress.h" |
33 #include "CodEngbase.h" |
34 #include "CodEngBase.h" |
34 |
35 |
35 #include <cookiefilterinterface.h> |
36 #include <cookiefilterinterface.h> |
36 #include <uaproffilter_interface.h> |
37 #include <uaproffilter_interface.h> |
37 #include <deflatefilterinterface.h> |
38 #include <deflatefilterinterface.h> |
38 #include <httperr.h> |
39 #include <httperr.h> |
39 #include <bldvariant.hrh> |
40 #include <bldvariant.hrh> |
40 #include <ecom/ecom.h> |
41 #include <ecom/ecom.h> |
41 #include <es_sock.h> |
42 #include <es_sock.h> |
42 #include <EscapeUtils.h> |
43 #include <escapeutils.h> |
43 #include <http/rhttpheaders.h> |
44 #include <http/rhttpheaders.h> |
44 #include <Oma2Agent.h> |
45 #include <Oma2Agent.h> |
45 #include <httpdownloadmgrcommon.h> |
46 #include <HttpDownloadMgrCommon.h> |
46 #include "HeaderField.h" |
47 #include "HeaderField.h" |
47 #include "FileExt.h" |
48 #include "FileExt.h" |
48 #include "CodData.h" |
49 #include "CodData.h" |
|
50 |
|
51 |
49 |
52 |
50 _LIT8( KDRMOldContentType, "x-drm-old-content-type"); // old content type header to be added |
53 _LIT8( KDRMOldContentType, "x-drm-old-content-type"); // old content type header to be added |
51 _LIT8( KAcceptRangeHeaderNone, "none"); |
54 _LIT8( KAcceptRangeHeader, "bytes"); |
52 |
55 |
53 // ================= CONSTANTS ======================= |
56 // ================= CONSTANTS ======================= |
54 |
57 |
55 /// Maximum user name length we support. |
58 /// Maximum user name length we support. |
56 LOCAL_D const TInt KCodMaxAuthUserName = 50; |
59 LOCAL_D const TInt KCodMaxAuthUserName = 50; |
1064 { |
1067 { |
1065 RStringF range = iSess->Sess().StringPool().StringF(HTTP::EAcceptRanges, RHTTPSession::GetTable()); |
1068 RStringF range = iSess->Sess().StringPool().StringF(HTTP::EAcceptRanges, RHTTPSession::GetTable()); |
1066 THTTPHdrVal value; |
1069 THTTPHdrVal value; |
1067 |
1070 |
1068 TInt index = FindHeaderField(iResponseHeaders, range.DesC()); |
1071 TInt index = FindHeaderField(iResponseHeaders, range.DesC()); |
|
1072 |
1069 if( index != KErrNotFound ) |
1073 if( index != KErrNotFound ) |
1070 { |
1074 { |
1071 if( !(*iResponseHeaders)[index]->FieldRawData()->Compare( KAcceptRangeHeaderNone() ) ) |
1075 if( !(*iResponseHeaders)[index]->FieldRawData()->Compare( KAcceptRangeHeader() ) ) |
1072 { |
1076 { |
1073 return EFalse; |
1077 return ETrue; |
1074 } |
1078 } |
1075 } |
1079 } |
1076 return ETrue; |
1080 |
1077 |
1081 return EFalse; |
1078 } |
1082 } |
1079 |
1083 |
1080 // --------------------------------------------------------- |
1084 // --------------------------------------------------------- |
1081 // CHttpLoader::HandleResponseHeadersL() |
1085 // CHttpLoader::HandleResponseHeadersL() |
1082 // --------------------------------------------------------- |
1086 // --------------------------------------------------------- |