webengine/osswebengine/WebCore/platform/network/symbian/MultipartContentHandler.cpp
branchRCL_3
changeset 94 919f36ff910f
parent 93 79859ed3eea9
equal deleted inserted replaced
93:79859ed3eea9 94:919f36ff910f
    16 */
    16 */
    17 
    17 
    18 // INCLUDE FILES
    18 // INCLUDE FILES
    19 #include "config.h"
    19 #include "config.h"
    20 #include "MultipartContentHandler.h"
    20 #include "MultipartContentHandler.h"
    21 #include "multipartparser.h"
    21 #include <multipartparser.h>
    22 #include "bodypart.h"
    22 #include <bodypart.h>
    23 #include "HttpSessionManager.h"
    23 #include "HttpSessionManager.h"
    24 #include "httpcachemanager.h"
    24 #include "httpcachemanager.h"
    25 #include <http/rhttptransaction.h>
    25 #include <http/rhttptransaction.h>
    26 #include <uri16.h>
    26 #include <Uri16.h>
    27 #include "httpfiltercommonstringsext.h"
    27 #include "httpfiltercommonstringsext.h"
    28 #include "WebCharsetData.h"
    28 #include "WebCharsetData.h"
    29 #include "StaticObjectsContainer.h"
    29 #include "StaticObjectsContainer.h"
    30 #include "ResourceLoaderDelegate.h"
    30 #include "ResourceLoaderDelegate.h"
    31 #include "HttpConnUtils.h"
    31 #include "HttpConnUtils.h"
   156     RHTTPSession session = httpTransaction.Session();
   156     RHTTPSession session = httpTransaction.Session();
   157     RStringPool stringPool = session.StringPool();
   157     RStringPool stringPool = session.StringPool();
   158     const TStringTable& stringTable = session.GetTable();
   158     const TStringTable& stringTable = session.GetTable();
   159     if(hdrs.GetParam(stringPool.StringF( HTTP::EContentType, stringTable ),
   159     if(hdrs.GetParam(stringPool.StringF( HTTP::EContentType, stringTable ),
   160         stringPool.StringF( HttpFilterCommonStringsExt::EBoundary,
   160         stringPool.StringF( HttpFilterCommonStringsExt::EBoundary,
   161         HttpFilterCommonStringsExt::GetTable()), hdrVal) == KErrNone) {
   161         HttpFilterCommonStringsExt::GetTable()), hdrVal) != KErrNone) {
       
   162             _LIT8(KBoundary, ".boundary");
       
   163             RStringF boundaryStrf = stringPool.OpenFStringL(KBoundary);
       
   164             if(hdrs.GetParam(stringPool.StringF(HTTP::EContentType, stringTable), boundaryStrf, hdrVal) == KErrNone) {
       
   165                 boundPtr.Set(hdrVal.StrF().DesC());
       
   166                 }
       
   167         boundaryStrf.Close();
       
   168     }
       
   169     else {
   162         boundPtr.Set(hdrVal.StrF().DesC());
   170         boundPtr.Set(hdrVal.StrF().DesC());
   163     }
   171         }
   164     // locate any cache control headers in top-level response
   172     // locate any cache control headers in top-level response
   165     TPtrC8 expiresPtr;
   173     TPtrC8 expiresPtr;
   166     TPtrC8 cacheControlPtr;
   174     TPtrC8 cacheControlPtr;
   167     hdrs.GetRawField(stringPool.StringF(HTTP::EExpires, stringTable), expiresPtr);
   175     hdrs.GetRawField(stringPool.StringF(HTTP::EExpires, stringTable), expiresPtr);
   168     hdrs.GetRawField(stringPool.StringF(HTTP::ECacheControl, stringTable), cacheControlPtr);
   176     hdrs.GetRawField(stringPool.StringF(HTTP::ECacheControl, stringTable), cacheControlPtr);