chore: remove duplicate word in comments (#3081)

This commit is contained in:
Abirdcfly 2022-08-29 12:25:36 +08:00 committed by GitHub
parent 9d077b02cf
commit ba492f07c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -883,7 +883,7 @@ custom_domains = test.example.com
host_header_rewrite = dev.example.com host_header_rewrite = dev.example.com
``` ```
The HTTP request will have the the `Host` header rewritten to `Host: dev.example.com` when it reaches the actual web server, although the request from the browser probably has `Host: test.example.com`. The HTTP request will have the `Host` header rewritten to `Host: dev.example.com` when it reaches the actual web server, although the request from the browser probably has `Host: test.example.com`.
### Setting other HTTP Headers ### Setting other HTTP Headers

View File

@ -68,7 +68,7 @@ func PrunedStack(skip int) []byte {
fullStackTrace := debug.Stack() fullStackTrace := debug.Stack()
stack := bytes.Split(fullStackTrace, []byte("\n")) stack := bytes.Split(fullStackTrace, []byte("\n"))
// Ensure that the even entries are the method names and the // Ensure that the even entries are the method names and the
// the odd entries the source code information. // odd entries the source code information.
if len(stack) > 0 && bytes.HasPrefix(stack[0], []byte("goroutine ")) { if len(stack) > 0 && bytes.HasPrefix(stack[0], []byte("goroutine ")) {
// Ignore "goroutine 29 [running]:" line. // Ignore "goroutine 29 [running]:" line.
stack = stack[1:] stack = stack[1:]