update 15.3 (#528)

This commit is contained in:
xin zhao
2018-07-20 19:18:20 +08:00
committed by 无闻
parent 74087f32bd
commit d44f630d0c

View File

@@ -139,7 +139,7 @@ go为所有的HTTP状态码定义了常量比如
http.StatusNotFound = 404 http.StatusNotFound = 404
http.StatusInternalServerError = 500 http.StatusInternalServerError = 500
你可以使用`w.header().Set("Content-Type", "../..")设置头信息 你可以使用`w.header().Set("Content-Type", "../..")`设置头信息
比如在网页应用发送html字符串的时候在输出之前执行`w.Header().Set("Content-Type", "text/html")` 比如在网页应用发送html字符串的时候在输出之前执行`w.Header().Set("Content-Type", "text/html")`