Skip to content

Commit 983b385

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents b5f718b + 18de011 commit 983b385

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

pkg/camo/proxy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ func (p *Proxy) ServeHTTP(w http.ResponseWriter, req *http.Request) {
170170

171171
if resp != nil {
172172
defer func() {
173-
if err:= resp.Body.Close(); err != nil {
173+
if err := resp.Body.Close(); err != nil {
174174
if mlog.HasDebug() {
175175
mlog.Debug("error on body close. ignoring.")
176176
}

pkg/htrie/glob_path_chk.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ func (gpc *GlobPathChecker) parseRule(rule string) (string, string, error) {
4747
// AddRule adds a rule to the GlobPathChecker.
4848
// The expected rule format is:
4949
//
50-
// <pipe-character><flags><pipe-character><match-url>
50+
// <pipe-character><flags><pipe-character><match-url>
5151
//
5252
// Example:
5353
//
54-
// |i|/some/subdir/*
54+
// |i|/some/subdir/*
5555
//
5656
// Allowed flags:
5757
//

pkg/htrie/htrie.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,7 @@ func (dt *URLMatcher) CheckURL(u *url.URL) bool {
298298
// sanitized, space trimmed, and lowercased...
299299
// Basically sanitized in a way similar to:
300300
//
301-
// strings.ToLower((*url.URL).Hostname())
302-
//
301+
// strings.ToLower((*url.URL).Hostname())
303302
func (dt *URLMatcher) CheckHostname(hostname string) bool {
304303
hostname = strings.ToLower(hostname)
305304
matches := dt.walkFind(hostname)

0 commit comments

Comments
 (0)