comparison src/c/request.c @ 1065:217eb87dde31

Basis.url and redirects
author Adam Chlipala <adamc@hcoop.net>
date Thu, 10 Dec 2009 13:32:09 -0500
parents 83d8ddd09d95
children 740b85ef4352
comparison
equal deleted inserted replaced
1064:b89e3d8731ed 1065:217eb87dde31
372 rc->path_copy_size = path_len + 1; 372 rc->path_copy_size = path_len + 1;
373 rc->path_copy = realloc(rc->path_copy, rc->path_copy_size); 373 rc->path_copy = realloc(rc->path_copy, rc->path_copy_size);
374 } 374 }
375 strcpy(rc->path_copy, path); 375 strcpy(rc->path_copy, path);
376 fk = uw_begin(ctx, rc->path_copy); 376 fk = uw_begin(ctx, rc->path_copy);
377 if (fk == SUCCESS || fk == RETURN_BLOB) { 377 if (fk == SUCCESS || fk == RETURN_INDIRECTLY) {
378 uw_commit(ctx); 378 uw_commit(ctx);
379 return SERVED; 379 return SERVED;
380 } else if (fk == BOUNDED_RETRY) { 380 } else if (fk == BOUNDED_RETRY) {
381 if (retries_left) { 381 if (retries_left) {
382 log_debug(logger_data, "Error triggers bounded retry: %s\n", uw_error_message(ctx)); 382 log_debug(logger_data, "Error triggers bounded retry: %s\n", uw_error_message(ctx));