Skip to content

Cleanup: renames and delete unused file #86

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

Merged
merged 5 commits into from
Jan 10, 2025

Conversation

phbnf
Copy link
Collaborator

@phbnf phbnf commented Jan 10, 2025

Towards #5

This PR:

  • renames LogOrigin to Origin
  • renames tesseraDeadline to httpDeadline
  • deleted proto_gen.go which is not used anymore

@phbnf phbnf marked this pull request as ready for review January 10, 2025 14:36
@phbnf phbnf requested a review from AlCutter January 10, 2025 14:36
Comment on lines 114 to 118
if r.Method != a.Method {
klog.Warningf("%s: %s wrong HTTP method: %v", a.Info.LogOrigin, a.Name, r.Method)
klog.Warningf("%s: %s wrong HTTP method: %v", a.Info.Origin, a.Name, r.Method)
a.Info.SendHTTPError(w, http.StatusMethodNotAllowed, fmt.Errorf("method not allowed: %s", r.Method))
a.Info.RequestLog.Status(logCtx, http.StatusMethodNotAllowed)
return
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could probably get rid of this if you use the new style handler mapping on the HTTP mux which allows you to specify the method.

@phbnf phbnf merged commit 117a6ef into transparency-dev:main Jan 10, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants