Closed
Milestone
Description
Running on 1.5.1, looks like some endpoints are not setting the Content-Type header field properly:
ok:
GET /api/v1/pipelines/setup:test HTTP/1.1
Authorization: Basic bXl1c2VyOm15cGFzcw==
Cookie: ATC-Authorization=Basic bXl1c2VyOm15cGFzcw==
Host: 192.168.1.6:8081
Connection: close
User-Agent: Paw/2.3.4 (Macintosh; OS X/10.11.5) GCDHTTPRequest
HTTP/1.1 200 OK
Content-Type: application/json
Set-Cookie: ATC-Authorization=Basic bXl1c2VyOm15cGFzcw==; Path=/; Expires=Wed, 27 Jul 2016 20:59:24 GMT
X-Concourse-Version: 1.5.1
Date: Tue, 26 Jul 2016 20:59:24 GMT
Content-Length: 67
Connection: close
{"name":"setup:test","url":"/pipelines/setup:test","paused":false}not ok:
GET /api/v1/pipelines/setup:test/jobs HTTP/1.1
Authorization: Basic bXl1c2VyOm15cGFzcw==
Cookie: ATC-Authorization=Basic bXl1c2VyOm15cGFzcw==
Host: 192.168.1.6:8081
Connection: close
User-Agent: Paw/2.3.4 (Macintosh; OS X/10.11.5) GCDHTTPRequest
HTTP/1.1 200 OK
Set-Cookie: ATC-Authorization=Basic bXl1c2VyOm15cGFzcw==; Path=/; Expires=Wed, 27 Jul 2016 20:59:28 GMT
X-Concourse-Version: 1.5.1
Date: Tue, 26 Jul 2016 20:59:28 GMT
Content-Length: 555
Content-Type: text/plain; charset=utf-8
Connection: close
[{"name":"9038ae729c326a5e0c42d35608339a02","url":"/pipelines/setup:test/jobs/9038ae729c326a5e0c42d35608339a02","next_build":null,"finished_build":{"id":1,"name":"1","st (...) "outputs":[],"groups":[]}]Would that be an easy fix? Am i missing something?
Thx!
Moved from vmware-archive/atc#95
/cc @cirocosta
Activity
Set Content-Type to "application/json" where applicable in API
bump etree tsa handlers mux clockwork goxmldsig genproto grpc