platform/shared/common/RhodesApp.cpp in rhodes-5.5.2 vs platform/shared/common/RhodesApp.cpp in rhodes-5.5.15

- old
+ new

@@ -2639,11 +2639,11 @@ { return RHODESAPP().getLocalServerPort(); } #ifdef OS_MACOSX -const char* rho_http_direct_request( const char* method, const char* uri, const char* query, const void* headers, const char* body, int* responseLength ) +const char* rho_http_direct_request( const char* method, const char* uri, const char* query, const void* headers, const char* body, int bodylen, int* responseLength ) { String sMethod; String sUri; String sQuery; @@ -2661,10 +2661,10 @@ if ( query != 0 ) { sQuery = query; } if ( body != 0 ) { - sBody = body; + sBody.assign(body, bodylen); } if ( headers != 0 ) { oHeaders = *(rho::net::HttpHeaderList*)headers; }