-
Notifications
You must be signed in to change notification settings - Fork 55
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
If signer had to cap the AMP doc, don't sign and proxy full document. #444
Conversation
packager/signer/signer_test.go
Outdated
resp.Header().Set("Content-Type", "text/html") | ||
resp.Write(customFakeBody) | ||
} | ||
resp := this.get(this.T(), this.new(urlSets), "/priv/doc?sign="+url.QueryEscape(this.httpsURL()+fakePath)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code doesn't look up to date. In particular, I remember replacing this.get() during the FIXIT in PR ec46ffd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but wait for twifkak's review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvement, thanks!
packager/signer/signer_test.go
Outdated
veryLongArray := [maxBodyLength + uncappedTailLength]string{} | ||
veryLongString := strings.Join(veryLongArray[:], "a") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can replace this with a call to https://golang.org/pkg/strings/#Repeat.
No description provided.