equal
deleted
inserted
replaced
46 #include "HeaderField.h" |
46 #include "HeaderField.h" |
47 #include "FileExt.h" |
47 #include "FileExt.h" |
48 #include "CodData.h" |
48 #include "CodData.h" |
49 |
49 |
50 _LIT8( KDRMOldContentType, "x-drm-old-content-type"); // old content type header to be added |
50 _LIT8( KDRMOldContentType, "x-drm-old-content-type"); // old content type header to be added |
51 _LIT8( KAcceptRangeHeader, "bytes"); |
51 _LIT8( KAcceptRangeHeader, "bytes"); |
|
52 _LIT8( KAcceptRangeHeaderNone, "none"); |
52 |
53 |
53 // ================= CONSTANTS ======================= |
54 // ================= CONSTANTS ======================= |
54 |
55 |
55 /// Maximum user name length we support. |
56 /// Maximum user name length we support. |
56 LOCAL_D const TInt KCodMaxAuthUserName = 50; |
57 LOCAL_D const TInt KCodMaxAuthUserName = 50; |
1064 { |
1065 { |
1065 RStringF range = iSess->Sess().StringPool().StringF(HTTP::EAcceptRanges, RHTTPSession::GetTable()); |
1066 RStringF range = iSess->Sess().StringPool().StringF(HTTP::EAcceptRanges, RHTTPSession::GetTable()); |
1066 THTTPHdrVal value; |
1067 THTTPHdrVal value; |
1067 |
1068 |
1068 TInt index = FindHeaderField(iResponseHeaders, range.DesC()); |
1069 TInt index = FindHeaderField(iResponseHeaders, range.DesC()); |
1069 |
|
1070 if( index != KErrNotFound ) |
1070 if( index != KErrNotFound ) |
1071 { |
1071 { |
1072 if( !(*iResponseHeaders)[index]->FieldRawData()->Compare( KAcceptRangeHeader() ) ) |
1072 if( !(*iResponseHeaders)[index]->FieldRawData()->Compare( KAcceptRangeHeaderNone() ) ) |
1073 { |
1073 { |
1074 return ETrue; |
1074 return EFalse; |
1075 } |
1075 } |
1076 } |
1076 } |
1077 |
1077 return ETrue; |
1078 return EFalse; |
1078 |
1079 } |
1079 } |
1080 |
1080 |
1081 // --------------------------------------------------------- |
1081 // --------------------------------------------------------- |
1082 // CHttpLoader::HandleResponseHeadersL() |
1082 // CHttpLoader::HandleResponseHeadersL() |
1083 // --------------------------------------------------------- |
1083 // --------------------------------------------------------- |