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

chore: fix some typos in comments #1249

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion docs/Request-rewriting.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ gor --input-raw :80 --output-http "http://staging.server" \
```

#### Host header
Host header gets special treatment. By default Host get set to the value specified in --output-http. If you manually set --http-set-header "Host: anonther.com", Gor will not override Host value.
Host header gets special treatment. By default Host get set to the value specified in --output-http. If you manually set --http-set-header "Host: another.com", Gor will not override Host value.

If you app accepts traffic from multiple domains, and you want to keep original headers, there is specific `--http-original-host` with tells Gor do not touch Host header at all.

Expand Down
2 changes: 1 addition & 1 deletion examples/middleware/token_modifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func process(buf []byte) {
// Token is inside response body
secureToken := proto.Body(payload)
originalTokens[reqID] = secureToken
Debug("Remember origial token:", string(secureToken))
Debug("Remember original token:", string(secureToken))
}
case '3': // Replayed response
if originalToken, ok := originalTokens[reqID]; ok {
Expand Down
2 changes: 1 addition & 1 deletion internal/tcp/tcp_message.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ func (parser *MessageParser) Fix100Continue(m *Message) {
p.Ack += 25
}

// If next section was aready approved and received, merge messages
// If next section was already approved and received, merge messages
if next, found := parser.m[m.packets[0].MessageID()]; found {
for _, p := range next.packets {
parser.addPacket(m, p)
Expand Down
2 changes: 1 addition & 1 deletion internal/tcp/tcp_packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const (
/*
Packet represent data and layers of packet.
parser extracts information from pcap Packet. functions of *Packet doesn't validate if packet is nil,
calllers must make sure that ParsePacket has'nt returned any error before calling any other
calllers must make sure that ParsePacket hasn't returned any error before calling any other
function.
*/
type Packet struct {
Expand Down