Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix /domain listings with IPv6 address

  • Loading branch information...
commit 2cfd44f8aef9cc30c33aeefcf728e4da8e637263 1 parent 6ea6a6d
k21 authored December 14, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  r2/r2/config/middleware.py
2  r2/r2/config/middleware.py
@@ -356,7 +356,7 @@ def __call__(self, environ, start_response):
356 356
         return self.app(environ, start_response)
357 357
 
358 358
 class DomainListingMiddleware(object):
359  
-    domain_pattern = re.compile(r'\A/domain/(([-\w]+\.)+[\w]+)')
  359
+    domain_pattern = re.compile(r'\A/domain/(([-\w]+\.)+[\w]+|\[[0-9a-fA-F:]+\])')
360 360
 
361 361
     def __init__(self, app):
362 362
         self.app = app

0 notes on commit 2cfd44f

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