Skip to content

Mysterious header "content-type" => "application/json" being added #52

@jackalcooper

Description

@jackalcooper
{:ok, %Maxwell.Conn{method: :post, opts: [], path: "/comet", query_string: %{},
 req_body: nil,
 req_headers: %{"Content-Type" => "application/json",
 "authorization" => "Bearer J9O6qCHqNU0jADFWoHtmTroLsBYQEmCG3FWd-B09YAqWjQQV", 
"content-type" => "application/json"}, resp_body: "Bad request",
 resp_headers: %{"connection" => "keep-alive", "content-type" => "text/plain; charset=utf-8", "date" => "Sun, 05 Mar 2017 13:55:05 GMT", 
"server" => "nginx/1.10.1", "transfer-encoding" => "chunked"}, 
state: :sent, 
status: 400, url: "http://test.com:8030"}}

There should not be a "content-type" => "application/json because that's my Maxwell.Middleware.Headers's params

middleware Maxwell.Middleware.Headers, %{
      "Content-Type" => "application/json"
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions