Skip to content
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

Send 404 immediately for known public requests #11117

Merged
merged 5 commits into from
Apr 18, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove ctx.Resp.Write
  • Loading branch information
silverwind committed Apr 17, 2020
commit eb554ef0b3a97cf3cebc4cefceaf26d236e84d53
1 change: 0 additions & 1 deletion modules/public/public.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ func (opts *Options) handle(ctx *macaron.Context, log *log.Logger, opt *Options)
for _, entry := range resourceEntries {
if entry == parts[1] {
ctx.Resp.WriteHeader(404)
ctx.Resp.Write([]byte(""))
return true
}
}
Expand Down