Skip to content

Commit

Permalink
update 15.3 (unknwon#528)
Browse files Browse the repository at this point in the history
  • Loading branch information
qichengzx authored and unknwon committed Jul 20, 2018
1 parent 74087f3 commit d44f630
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eBook/15.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ go为所有的HTTP状态码定义了常量,比如:
http.StatusNotFound = 404
http.StatusInternalServerError = 500

你可以使用`w.header().Set("Content-Type", "../..")设置头信息
你可以使用`w.header().Set("Content-Type", "../..")`设置头信息

比如在网页应用发送html字符串的时候,在输出之前执行`w.Header().Set("Content-Type", "text/html")`

Expand Down

0 comments on commit d44f630

Please sign in to comment.