diff options
author | Tim Burke <tim.burke@gmail.com> | 2017-04-10 15:38:58 -0700 |
---|---|---|
committer | Tim Burke <tim.burke@gmail.com> | 2017-04-10 15:40:35 -0700 |
commit | aaaed55cd46902612f1ba93ac3394cfd99679b00 (patch) | |
tree | 819bc66d7e016fe3798e56d426c5354a66d0821f | |
parent | 058fb0323f9bc579a891ad48dcff80a7eda4f8ac (diff) | |
download | python-swiftclient-aaaed55cd46902612f1ba93ac3394cfd99679b00.tar.gz |
Stop sending X-Static-Large-Object headers
If we were to include this in a normal PUT, it would 400, but only if
slo is actually in the pipeline. If it's *not*, we'll create a normal
Swift object and the header sticks.
- This is really confusing for users; see the related bug.
- If slo is later enabled in the cluster, Swift starts responding 500
with a KeyError because the client and on-disk formats don't match!
Change-Id: I1d80c76af02f2ca847123349224ddc36d2a6996b
Related-Change: I986c1656658f874172860469624118cc63bff9bc
Related-Bug: #1680083
-rw-r--r-- | swiftclient/service.py | 1 | ||||
-rw-r--r-- | tests/unit/test_shell.py | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/swiftclient/service.py b/swiftclient/service.py index ce0c4fc..b933d4b 100644 --- a/swiftclient/service.py +++ b/swiftclient/service.py @@ -1983,7 +1983,6 @@ class SwiftService(object): } for d in segment_results ]) - put_headers['x-static-large-object'] = 'true' mr = {} conn.put_object( container, obj, manifest_data, diff --git a/tests/unit/test_shell.py b/tests/unit/test_shell.py index f7e9c1a..2b3736c 100644 --- a/tests/unit/test_shell.py +++ b/tests/unit/test_shell.py @@ -714,7 +714,6 @@ class TestShell(unittest.TestCase): mock.ANY, headers={ 'x-object-meta-mtime': mock.ANY, - 'x-static-large-object': 'true' }, query_string='multipart-manifest=put', response_dict={}) |