Skip to content

Commit eebd227

Browse files
authored
update create_server.py
1 parent 7f21408 commit eebd227

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

18-create-servers-with-requests/create_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
def create_server(name, host):
66
data = {
7-
# 删除所有服务器记录
87
'name': name,
98
'host': host
109
}
10+
# 思考:这里为什么没有设置 application/json 头部?
1111
resp = requests.post(CREATE_SERVER, json=data)
1212
return resp.json()
1313

0 commit comments

Comments
 (0)