目前我正在运行在这里找到的 uber.yaml 。我目前的实际值与预期值不匹配:
expected:
headers:
Content-Type: application/json
actual:
statusCode: 301
headers:
server: nginx
date: Tue, 13 Dec 2016 20:32:28 GMT
content-type: text/html
content-length: 178
location: https://api.uber.com/v1/history
connection: close
age: 0
有人知道怎么修这个东西吗?我已编辑 uber.yaml 以包含预期的内容类型,如下所示:
- name: Content-Type
in: header
type: string
required: true
default: application/json