http: fix http_free_header_table
Type: fix Change-Id: I014aebc84d0c219cc0c99120e9cd51fcc520a41c Signed-off-by: Matus Fabian <matfabia@cisco.com>
This commit is contained in:
parent
18eedde9f2
commit
499a9dd875
@ -1325,6 +1325,16 @@ func HttpHeadersTest(s *NoTopoSuite) {
|
||||
data2, err := io.ReadAll(resp2.Body)
|
||||
s.AssertNil(err, fmt.Sprint(err))
|
||||
s.AssertContains(string(data2), "<html>", "html content not received")
|
||||
|
||||
/* test cleanup */
|
||||
client.CloseIdleConnections()
|
||||
for nTries := 0; nTries < 10; nTries++ {
|
||||
o := vpp.Vppctl("show session verbose 2")
|
||||
if !strings.Contains(o, serverAddress+":80->"+s.HostAddr()) {
|
||||
break
|
||||
}
|
||||
time.Sleep(1 * time.Second)
|
||||
}
|
||||
}
|
||||
|
||||
func HttpInvalidHeadersTest(s *NoTopoSuite) {
|
||||
|
@ -924,7 +924,6 @@ http_free_header_table (http_header_table_t *ht)
|
||||
vec_free (ht->headers);
|
||||
vec_free (ht->buf);
|
||||
hash_free (ht->value_by_name);
|
||||
clib_mem_free (ht);
|
||||
}
|
||||
|
||||
static uword
|
||||
|
Loading…
x
Reference in New Issue
Block a user