I was duplicating the logic fromgst_soup_http_src_got_headers_cb() so I assume it is.