projects
/
deb
/
packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ca5599
)
dispatcher: Fix HTTP error code for "format not supported"
author
Frank Lichtenheld
<frank@lichtenheld.de>
Thu, 12 Apr 2007 22:28:58 +0000
(
00:28
+0200)
committer
Frank Lichtenheld
<frank@lichtenheld.de>
Thu, 12 Apr 2007 22:28:58 +0000
(
00:28
+0200)
405 is actually the error for not supported HTTP request (i.e.
GET, POST, etc). 406 is the correct code for content formats.
cgi-bin/dispatcher.pl
patch
|
blob
|
history
diff --git
a/cgi-bin/dispatcher.pl
b/cgi-bin/dispatcher.pl
index 754e9b08f4696d310ab14c4a8c0b745b2cb94a73..1f876dedce031f46296d80312df7f5fc64a4581a 100755
(executable)
--- a/
cgi-bin/dispatcher.pl
+++ b/
cgi-bin/dispatcher.pl
@@
-261,7
+261,7
@@
my $template = new Packages::Template( $TEMPLATEDIR, $opts{format}, { lang => $o
unless (-e "$TEMPLATEDIR/$opts{format}/${what_to_do}.tmpl") {
fatal_error( "requested format not available for this document",
- "40
5
requested format not available");
+ "40
6
requested format not available");
}
my (%html_header, %page_content);