Skip to content
This repository
Browse code

Method _key_from_url() now returns case sensitive results for special…

… domains (e.g. imgur.com, youtube.com). They are defined as case_sensitive_domains in the .ini file
  • Loading branch information...
commit 51bcbfbc97e8fe33c1b6ec34b70119e76c849f99 1 parent 1b030c3
Brian Simpson bsimpson63 authored
3  r2/example.ini 100644 → 100755
@@ -375,6 +375,9 @@ share_reply = noreply@reddit.com
375 375 # feedback email
376 376 feedback_email = reddit@gmail.com
377 377
  378 +# Special case sensitive domains
  379 +case_sensitive_domains = i.imgur.com, youtube.com
  380 +
378 381 [server:main]
379 382 use = egg:Paste#http
380 383 host = 0.0.0.0
3  r2/r2/lib/app_globals.py 100644 → 100755
@@ -110,7 +110,8 @@ class Globals(object):
110 110 'authorized_cnames',
111 111 'hardcache_categories',
112 112 'proxy_addr',
113   - 'allowed_pay_countries']
  113 + 'allowed_pay_countries',
  114 + 'case_sensitive_domains']
114 115
115 116 choice_props = {'cassandra_rcl': {'ONE': CL_ONE,
116 117 'QUORUM': CL_QUORUM},
8 r2/r2/models/link.py 100644 → 100755
@@ -538,7 +538,13 @@ class LinksByUrl(tdb_cassandra.View):

0 comments on commit 51bcbfb

Please sign in to comment.
Something went wrong with that request. Please try again.