Commit 0d8e46e8 authored by David Benjamin's avatar David Benjamin Committed by Commit Bot

Fix status text in redirect-helper.pl.

I noticed this going through apache error_log.txt trying to diagnose
other failures (perl warns about uninitialized value). $STATUS_TEXTS is
a reference to a hash, so it should be accessed via
$STATUS_TEXTS->{$REDIRECT_CODE}. $STATUS_TEXTS{$REDIRECT_CODE} means it
is accessing %STATUS_TEXTS. Switch to the latter.

Bug: none
Change-Id: I177105deb451e88e8f21ca4a7e0cce7b21727991
Reviewed-on: https://chromium-review.googlesource.com/c/1340561Reviewed-by: default avatarNate Chapin <japhet@chromium.org>
Commit-Queue: David Benjamin <davidben@chromium.org>
Cr-Commit-Position: refs/heads/master@{#609502}
parent dfd5ef53
......@@ -3,12 +3,12 @@
$REDIRECT_CODE = $ENV{'QUERY_STRING'} || '301';
$STATUS_TEXTS = {
%STATUS_TEXTS = (
'301' => 'Moved Permanently',
'302' => 'Moved Temporarily',
'303' => 'See Other',
'307' => 'Moved Temporarily'
};
);
print "Status: $REDIRECT_CODE $STATUS_TEXTS{$REDIRECT_CODE}\r\n";
print "Location: redirect-target.html#2\r\n";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment