[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
www/server/source/linc linc.py
From: |
Pavel Kharitonov |
Subject: |
www/server/source/linc linc.py |
Date: |
Mon, 22 Sep 2014 16:20:05 +0000 |
CVSROOT: /web/www
Module name: www
Changes by: Pavel Kharitonov <ineiev> 14/09/22 16:20:05
Modified files:
server/source/linc: linc.py
Log message:
Recognize more HTTP errors.
CVSWeb URLs:
http://web.cvs.savannah.gnu.org/viewcvs/www/server/source/linc/linc.py?cvsroot=www&r1=1.20&r2=1.21
Patches:
Index: linc.py
===================================================================
RCS file: /web/www/www/server/source/linc/linc.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- linc.py 17 May 2014 09:29:12 -0000 1.20
+++ linc.py 22 Sep 2014 16:20:04 -0000 1.21
@@ -18,7 +18,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-LINC_VERSION = 'LINC 0.16'
+LINC_VERSION = 'LINC 0.17'
USAGE = \
'''Usage: %prog [options] [BASE_DIRECTORY]
Check links in HTML files from BASE_DIRECTORY.'''
@@ -94,7 +94,7 @@
FTP_LINK_REGEXP = 'ftp://(?P<hostname>[^/:]+)(:(?P<port>[0-9]+))?'
# What to treat as a HTTP error header.
-HTTP_ERROR_HEADER = '(^|\r\n)HTTP/1\.1 (?P<http_error_code>403|404) '
+HTTP_ERROR_HEADER = '(^|\r\n)HTTP/1\.1 (?P<http_error_code>[45][0-9][0-9]) '
HTTP_FORWARD_HEADER = \
'(^|\r\n)HTTP/1\.1 (301 Moved Permanently|302 Found)(\r\n|$)'
HTTP_LINK_REGEXP = \
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- www/server/source/linc linc.py,
Pavel Kharitonov <=