comparison Core/HttpServer/MongooseServer.cpp @ 8:3a584803783e

build with visual studio
author jodogne
date Fri, 20 Jul 2012 11:00:49 +0200
parents 3959d33612cc
children 27e2bbc11200
comparison
equal deleted inserted replaced
6:9d483cf71d17 8:3a584803783e
279 int r = mg_read(connection, &postData[pos], length); 279 int r = mg_read(connection, &postData[pos], length);
280 if (r <= 0) 280 if (r <= 0)
281 { 281 {
282 return PostDataStatus_Failure; 282 return PostDataStatus_Failure;
283 } 283 }
284 assert((unsigned int) r <= length); 284 assert(r <= length);
285 length -= r; 285 length -= r;
286 pos += r; 286 pos += r;
287 } 287 }
288 288
289 return PostDataStatus_Success; 289 return PostDataStatus_Success;
351 it!=FindIterator(); 351 it!=FindIterator();
352 ++it) 352 ++it)
353 { 353 {
354 if (last != FindIterator()) 354 if (last != FindIterator())
355 { 355 {
356 Range part(&last->back(), &it->front()); 356 /* Range part(&last->back(), &it->front());
357 Range content = boost::find_first(part, "\r\n\r\n"); 357 Range content = boost::find_first(part, "\r\n\r\n");
358 if (content != Range()) 358 if (content != Range())
359 { 359 {
360 Range c(&content.back() + 1, &it->front() - 2); 360 Range c(&content.back() + 1, &it->front() - 2);
361 size_t chunkSize = c.size(); 361 size_t chunkSize = c.size();
377 else 377 else
378 { 378 {
379 return chunkStore.Store(completedFile, chunkData, chunkSize, fileName->second, fileSize); 379 return chunkStore.Store(completedFile, chunkData, chunkSize, fileName->second, fileSize);
380 } 380 }
381 } 381 }
382 } 382 }*/
383 } 383 }
384 384
385 last = it; 385 last = it;
386 } 386 }
387 } 387 }