nullability fix
This commit is contained in:
@@ -42,10 +42,12 @@ func createProxy(target *url.URL) func(http.ResponseWriter, *http.Request) {
|
|||||||
var jsonData map[string]interface{}
|
var jsonData map[string]interface{}
|
||||||
json.NewDecoder(r.Body).Decode(&jsonData)
|
json.NewDecoder(r.Body).Decode(&jsonData)
|
||||||
|
|
||||||
if jsonData["stream"].(bool) == false {
|
if jsonData["stream"] != nil {
|
||||||
notStreamed.Inc()
|
if !jsonData["stream"].(bool) {
|
||||||
} else {
|
notStreamed.Inc()
|
||||||
streamed.Inc()
|
} else {
|
||||||
|
streamed.Inc()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
modifyResponse := func(response *http.Response) error {
|
modifyResponse := func(response *http.Response) error {
|
||||||
|
|||||||
Reference in New Issue
Block a user