comparison src/http/modules/ngx_http_dav_module.c @ 1818:ae7affa52ec0

style fix
author Igor Sysoev <igor@sysoev.ru>
date Thu, 03 Jan 2008 17:21:13 +0000
parents 20a2512aacc4
children 0f907513dd3c
comparison
equal deleted inserted replaced
1817:4169e8194c97 1818:ae7affa52ec0
586 if (ngx_strncmp(desthost, host->value.data, len) != 0) { 586 if (ngx_strncmp(desthost, host->value.data, len) != 0) {
587 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, 587 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
588 "Destination URI \"%V\" is handled by " 588 "Destination URI \"%V\" is handled by "
589 "different repository than the source URI", 589 "different repository than the source URI",
590 &dest->value); 590 &dest->value);
591
592 return NGX_HTTP_BAD_REQUEST; 591 return NGX_HTTP_BAD_REQUEST;
593 } 592 }
594 593
595 last = dest->value.data + dest->value.len; 594 last = dest->value.data + dest->value.len;
596 595
603 invalid_destination: 602 invalid_destination:
604 603
605 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, 604 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
606 "client sent invalid \"Destination\" header: \"%V\"", 605 "client sent invalid \"Destination\" header: \"%V\"",
607 &dest->value); 606 &dest->value);
608
609 return NGX_HTTP_BAD_REQUEST; 607 return NGX_HTTP_BAD_REQUEST;
610 608
611 destination_done: 609 destination_done:
612 610
613 depth = ngx_http_dav_depth(r, 0); 611 depth = ngx_http_dav_depth(r, 0);
635 } 633 }
636 634
637 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, 635 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
638 "client sent invalid \"Overwrite\" header: \"%V\"", 636 "client sent invalid \"Overwrite\" header: \"%V\"",
639 &over->value); 637 &over->value);
640
641 return NGX_HTTP_BAD_REQUEST; 638 return NGX_HTTP_BAD_REQUEST;
642 } 639 }
643 640
644 overwrite = 1; 641 overwrite = 1;
645 642