Merge pull request #8101 from jfrazelle/6974-correct-ct-json-stream

Change content-type for json stream to application/x-json-stream.
This commit is contained in:
Victor Vieux
2014-09-23 11:24:31 -07:00
5 changed files with 15 additions and 4 deletions
@@ -37,6 +37,12 @@ You can still call an old version of the API using
### What's new
`POST /build`
`GET /events`
**New!**
Now has header: `Content-Type: application/x-json-stream`.
## v1.14
### Full Documentation
@@ -1052,7 +1052,7 @@ Build an image from Dockerfile via stdin
**Example response**:
HTTP/1.1 200 OK
Content-Type: application/json
Content-Type: application/x-json-stream
{"stream":"Step 1..."}
{"stream":"..."}
@@ -1279,7 +1279,7 @@ via polling (using since)
**Example response**:
HTTP/1.1 200 OK
Content-Type: application/json
Content-Type: application/x-json-stream
{"status":"create","id":"dfdf82bd3881","from":"base:latest","time":1374067924}
{"status":"start","id":"dfdf82bd3881","from":"base:latest","time":1374067924}