fix(oohelperd): return HTTP headers as empty map on error (#541)
Part of https://github.com/ooni/probe/issues/1707
This commit is contained in:
parent
43c349fe38
commit
9e365661f0
|
@ -34,6 +34,7 @@ func HTTPDo(ctx context.Context, config *HTTPConfig) {
|
||||||
BodyLength: -1,
|
BodyLength: -1,
|
||||||
Failure: newfailure(err),
|
Failure: newfailure(err),
|
||||||
StatusCode: -1,
|
StatusCode: -1,
|
||||||
|
Headers: map[string]string{},
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
@ -53,6 +54,7 @@ func HTTPDo(ctx context.Context, config *HTTPConfig) {
|
||||||
BodyLength: -1,
|
BodyLength: -1,
|
||||||
Failure: newfailure(err),
|
Failure: newfailure(err),
|
||||||
StatusCode: -1,
|
StatusCode: -1,
|
||||||
|
Headers: map[string]string{},
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user