Skip to content

Commit

Permalink
Fix Flutter Issue #164
Browse files Browse the repository at this point in the history
  • Loading branch information
azimjohn committed Aug 26, 2023
1 parent 16f1019 commit 7f7596f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ func parseHost(r io.Reader) (string, []byte, error) {
}
text := string(buffer)
left := strings.Index(text, "Host: ")
if left < 0 {
left = strings.Index(text, "host: ")
}
if left < 0 {
return "", buffer, fmt.Errorf("no host detected")
}
Expand Down

0 comments on commit 7f7596f

Please sign in to comment.