mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-28 09:00:46 +00:00
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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user