Skip to content

Commit

Permalink
Update classfile.go
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei authored Apr 15, 2024
1 parent 02a2371 commit 1f3f72a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ytest/classfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ func Gopt_App_Main(app interface{ initApp() *App }, workers ...interface{ initCa

// Host replaces a host into real. For example:
//
// host "https://example.com" "http://localhost:8080"
// host "http://example.com" "http://localhost:8888"
// host "https://example.com", "http://localhost:8080"
// host "http://example.com", "http://localhost:8888"
func (p *App) Host(host, real string) {
if !strings.HasPrefix(host, "http") {
test.Fatalf("invalid host `%s`: should start with http:// or https://\n", host)
Expand Down

0 comments on commit 1f3f72a

Please sign in to comment.