diff options
-rw-r--r-- | .htaccess | 6 | ||||
-rw-r--r-- | tests/test_click_through_license.py | 6 |
2 files changed, 3 insertions, 9 deletions
@@ -30,9 +30,6 @@ RewriteRule .* - [L] ## If license file is requested, and a download has been requested previously, ## pass through to the license file. -RewriteCond %{REQUEST_URI} /licenses/ste.html$ [OR] -RewriteCond %{REQUEST_URI} /licenses/samsung.html$ [OR] -RewriteCond %{REQUEST_URI} /licenses/linaro.html$ [OR] RewriteCond %{REQUEST_URI} /licenses/nolicense.html$ [OR] RewriteCond %{REQUEST_URI} /licenses/license.php$ RewriteCond %{HTTP_COOKIE} downloadrequested @@ -41,9 +38,6 @@ RewriteRule .* - [L] ## When license files are requested directly, forward to ## the snapshots.l.o site itself. -RewriteCond %{REQUEST_URI} /licenses/linaro.html$ [OR] -RewriteCond %{REQUEST_URI} /licenses/samsung.html$ [OR] -RewriteCond %{REQUEST_URI} /licenses/ste.html$ [OR] RewriteCond %{REQUEST_URI} /licenses/license.php$ RewriteCond %{HTTP_COOKIE} !downloadrequested=(.*) RewriteRule .* / [R,L] diff --git a/tests/test_click_through_license.py b/tests/test_click_through_license.py index 00cd1c9..4a0520d 100644 --- a/tests/test_click_through_license.py +++ b/tests/test_click_through_license.py @@ -19,9 +19,9 @@ local_rewrite = 'RewriteCond %{REMOTE_ADDR} 127.0.0.1 [OR]' host = 'http://127.0.0.1' port = '0' # 0 == Pick a free port. -samsung_license_path = '/licenses/samsung.html' -ste_license_path = '/licenses/ste.html' -linaro_license_path = '/licenses/linaro.html' +samsung_license_path = '/licenses/license.php' +ste_license_path = '/licenses/license.php' +linaro_license_path = '/licenses/license.php' samsung_test_file = '/android/~linaro-android/staging-origen/test.txt' ste_test_file = ('/android/~linaro-android/staging-snowball' '/173/target/product/snowball/test.txt') |