Skip to content

Instantly share code, notes, and snippets.

@dpgoetz
dpgoetz / gist:4019083
Created November 5, 2012 17:51
cors diff
diff --git a/swift/proxy/controllers/base.py b/swift/proxy/controllers/base.py
index 582d007..887471e 100644
--- a/swift/proxy/controllers/base.py
+++ b/swift/proxy/controllers/base.py
@@ -39,7 +39,7 @@ from swift.common.exceptions import ChunkReadTimeout, ConnectionTimeout
from swift.common.http import is_informational, is_success, is_redirection, \
is_server_error, HTTP_OK, HTTP_PARTIAL_CONTENT, HTTP_MULTIPLE_CHOICES, \
HTTP_BAD_REQUEST, HTTP_NOT_FOUND, HTTP_SERVICE_UNAVAILABLE, \
- HTTP_INSUFFICIENT_STORAGE
+ HTTP_INSUFFICIENT_STORAGE, HTTP_UNAUTHORIZED
@dpgoetz
dpgoetz / gist:3919748
Created October 19, 2012 18:15
unit test
diff --git a/test/unit/proxy/test_server.py b/test/unit/proxy/test_server.py
index 4eeed3a..3ee2edf 100644
--- a/test/unit/proxy/test_server.py
+++ b/test/unit/proxy/test_server.py
@@ -46,7 +46,7 @@ from swift.common.exceptions import ChunkReadTimeout
from swift.common.constraints import MAX_META_NAME_LENGTH, \
MAX_META_VALUE_LENGTH, MAX_META_COUNT, MAX_META_OVERALL_SIZE, \
MAX_FILE_SIZE, MAX_ACCOUNT_NAME_LENGTH, MAX_CONTAINER_NAME_LENGTH
-from swift.common.utils import mkdirs, normalize_timestamp, NullLogger
+from swift.common.utils import mkdirs, normalize_timestamp, NullLogger, public
@dpgoetz
dpgoetz / gist:3919635
Created October 19, 2012 17:56
unit test
diff --git a/test/unit/proxy/test_server.py b/test/unit/proxy/test_server.py
index 4eeed3a..6efc98f 100644
--- a/test/unit/proxy/test_server.py
+++ b/test/unit/proxy/test_server.py
@@ -46,7 +46,7 @@ from swift.common.exceptions import ChunkReadTimeout
from swift.common.constraints import MAX_META_NAME_LENGTH, \
MAX_META_VALUE_LENGTH, MAX_META_COUNT, MAX_META_OVERALL_SIZE, \
MAX_FILE_SIZE, MAX_ACCOUNT_NAME_LENGTH, MAX_CONTAINER_NAME_LENGTH
-from swift.common.utils import mkdirs, normalize_timestamp, NullLogger
+from swift.common.utils import mkdirs, normalize_timestamp, NullLogger, public