mirror of
https://github.com/jimeh/casecmp.git
synced 2026-02-19 10:26:40 +00:00
Detect hostname from request
This commit is contained in:
2
main.go
2
main.go
@@ -30,7 +30,7 @@ func indexHandler(c *routing.Context) error {
|
|||||||
"\n" +
|
"\n" +
|
||||||
"Example:\n" +
|
"Example:\n" +
|
||||||
"curl -X POST -F \"a=Foo Bar\" -F \"b=FOO BAR\" " +
|
"curl -X POST -F \"a=Foo Bar\" -F \"b=FOO BAR\" " +
|
||||||
"http://casecmp.bah.io/",
|
"http://" + string(c.Host()) + "/",
|
||||||
))
|
))
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user