http.c (202613) | http.c (209632) |
---|---|
1/*- 2 * Copyright (c) 2000-2004 Dag-Erling Co�dan Sm�rgrav 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2000-2004 Dag-Erling Co�dan Sm�rgrav 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 13 unchanged lines hidden (view full) --- 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: head/lib/libfetch/http.c 202613 2010-01-19 10:19:55Z des $"); | 30__FBSDID("$FreeBSD: head/lib/libfetch/http.c 209632 2010-07-01 17:44:33Z des $"); |
31 32/* 33 * The following copyright applies to the base64 code: 34 * 35 *- 36 * Copyright 1997 Massachusetts Institute of Technology 37 * 38 * Permission to use, copy, modify, and distribute this software and --- 1742 unchanged lines hidden (view full) --- 1781 break; 1782 case hdr_transfer_encoding: 1783 /* XXX weak test*/ 1784 chunked = (strcasecmp(p, "chunked") == 0); 1785 break; 1786 case hdr_www_authenticate: 1787 if (conn->err != HTTP_NEED_AUTH) 1788 break; | 31 32/* 33 * The following copyright applies to the base64 code: 34 * 35 *- 36 * Copyright 1997 Massachusetts Institute of Technology 37 * 38 * Permission to use, copy, modify, and distribute this software and --- 1742 unchanged lines hidden (view full) --- 1781 break; 1782 case hdr_transfer_encoding: 1783 /* XXX weak test*/ 1784 chunked = (strcasecmp(p, "chunked") == 0); 1785 break; 1786 case hdr_www_authenticate: 1787 if (conn->err != HTTP_NEED_AUTH) 1788 break; |
1789 http_parse_authenticate(p, &server_challenges); | 1789 if (http_parse_authenticate(p, &server_challenges)) 1790 ++n; |
1790 break; 1791 case hdr_proxy_authenticate: 1792 if (conn->err != HTTP_NEED_PROXY_AUTH) 1793 break; | 1791 break; 1792 case hdr_proxy_authenticate: 1793 if (conn->err != HTTP_NEED_PROXY_AUTH) 1794 break; |
1794 http_parse_authenticate(p, &proxy_challenges); | 1795 if (http_parse_authenticate(p, &proxy_challenges) == 0); 1796 ++n; |
1795 break; 1796 case hdr_end: 1797 /* fall through */ 1798 case hdr_unknown: 1799 /* ignore */ 1800 break; 1801 } 1802 } while (h > hdr_end); --- 192 unchanged lines hidden --- | 1797 break; 1798 case hdr_end: 1799 /* fall through */ 1800 case hdr_unknown: 1801 /* ignore */ 1802 break; 1803 } 1804 } while (h > hdr_end); --- 192 unchanged lines hidden --- |