소스 검색

Merge pull request #268 from writeas/noindex-invite-links

Add 'X-Robots-Tag: noindex' header to invite URLs
pull/283/head
Matt Baer 4 년 전
committed by GitHub
부모
커밋
06054a2cd7
No known key found for this signature in database GPG 키 ID: 4AEE18F83AFDEB23
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. +3
    -0
      invites.go

+ 3
- 0
invites.go 파일 보기

@@ -170,6 +170,9 @@ func handleViewInvite(app *App, w http.ResponseWriter, r *http.Request) error {
p.Error = "This invite link has expired."
}

// Tell search engines not to index invite links
w.Header().Set("X-Robots-Tag", "noindex")

// Get error messages
session, err := app.sessionStore.Get(r, cookieName)
if err != nil {


불러오는 중...
취소
저장