Content-Type header must be octet stream
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Medium
|
Jay Pipes |
Bug Description
For an image upload via POST, the content-type header must be application/
curl --verbose --upload-file images -X POST "http://
* About to connect() to 192.168.1.230 port 9292 (#0)
* Trying 192.168.1.230... connected
* Connected to 192.168.1.230 (192.168.1.230) port 9292 (#0)
> POST /images HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-
> Host: 192.168.1.230:9292
> Accept: */*
> Content-Length: 8577351680
> Expect: 100-continue
>
< HTTP/1.1 400 Bad Request
< Content-Type: text/html; charset=UTF-8
< Content-Length: 263
< Date: Sun, 10 Apr 2011 00:14:24 GMT
<
<html>
<head>
<title>400 Bad Request</title>
</head>
<body>
<h1>400 Bad Request</h1>
The server could not comply with the request since
it is either malformed or otherwise incorrect.
<br /><br />
<traceback object at 0x1918d40>
</body>
Related branches
- Devin Carlen (community): Approve
- Rick Harris (community): Approve
- justinsb: Pending requested
-
Diff: 61 lines (+35/-1)2 files modifiedglance/server.py (+1/-1)
tests/functional/test_curl_api.py (+34/-0)
Changed in glance: | |
status: | In Progress → Fix Committed |
Changed in glance: | |
milestone: | cactus-rc → 2011.2 |
status: | Fix Committed → Fix Released |
On it. Thanks, Justin! :)