Skip to content

add utf-8 charset parameter to the content-type header for 'cf login' #950

@boyang9527

Description

@boyang9527

cf login send request to login server without charset parameter in content-type header, the login server can not determine the charset for correct decoding. We need Content-Type: application/x-www-form-urlencoded; charset=utf-8 in the following request

REQUEST: [2016-08-29T11:07:38-07:00]
POST /UAALoginServerWAR/oauth/token HTTP/1.1
Host: login.ng.bluemix.net
Accept: application/json
Authorization: [PRIVATE DATA HIDDEN]
Content-Type: application/x-www-form-urlencoded
User-Agent: go-cli 6.18.0+b22884b / darwin

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions