【发布时间】:2016-12-14 03:27:53
【问题描述】:
目前我正在运行找到 here 的 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
【问题讨论】: