-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
appengine/go で go1.8になって死ぬ理由一覧 #5
Comments
結論:netcontextとcontext周りで死ぬ |
あとライブラリのビルドタグで死んだパターンも聞いた |
WARNING 存在しないページではAngularにNotFound画面を出させつつ、検索エンジンのクローラのためにHTTPステータスコードを404を返そうとして↓みたいなコード書いていたら、 ucon.HandleFunc("GET", "/", func(w http.ResponseWriter, r *http.Request, c context.Context) {
/** 中略 */
if isAllowedPath(r.URL.Path) == false {
w.WriteHeader(404) // SEOのため許容していないパスへのリクエストは404にする
}
http.ServeFile(w, r, "dist/index.html") // Angularのindex.html返す。※この中でもw.WriteHeader()は呼ばれている
})
|
tenntennさんの記事も見るとよい |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
みんな好きに書いてね!
The text was updated successfully, but these errors were encountered: