We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59bfa1c commit cba7be9Copy full SHA for cba7be9
bunny.go
@@ -71,6 +71,7 @@ type bunnyApiResponse struct {
71
Country string `json:"country"`
72
State string `json:"state"`
73
ServerZone string `json:"serverzone"`
74
+ Text string `json:"text"`
75
Raw map[string]string `json:"raw"`
76
}
77
@@ -85,6 +86,7 @@ func bunnyApiHandler(w http.ResponseWriter, r *http.Request) {
85
86
result.Country = getHeader(r, "Cdn-Requestcountrycode", "(not set)")
87
result.State = getHeader(r, "Cdn-Requeststatecode", "(not set)")
88
result.ServerZone = getHeader(r, "Cdn-Serverzone", "(not set)")
89
+ result.Text = fmt.Sprintf("%s, %s", result.State, result.Country)
90
91
write_with_callback(w, r, result)
92
0 commit comments