Skip to content

Some endpoints don't set content-type to application/json #1111

Closed

Description

@chendrix

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

  1. added a commit that references this issue on Apr 18, 2018
    84e8772
  2. modified the milestones: v3.13.0, v3.12.0 on Jun 5, 2018
  3. modified the milestones: v3.12.0, v3.14.0 on Jun 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions