Other files ignored by Codecov
trunk/doc/CHANGELOG.md
has changed.
trunk/src/core/srs_core_version4.hpp
has changed.
76 | 76 | p_body_start = p_header_tail = NULL; |
|
77 | 77 | // We must reset the field name and value, because we may get a partial value in on_header_value. |
|
78 | 78 | field_name = field_value = ""; |
|
79 | + | // Reset the url. |
|
80 | + | url = ""; |
|
79 | 81 | // The header of the request. |
|
80 | 82 | srs_freep(header); |
|
81 | 83 | header = new SrsHttpHeader(); |
220 | 222 | srs_assert(obj); |
|
221 | 223 | ||
222 | 224 | if (length > 0) { |
|
223 | - | obj->url = string(at, (int)length); |
|
225 | + | // Note that this function might be called for multiple times, and we got pieces of content. |
|
226 | + | obj->url.append(at, (int)length); |
|
224 | 227 | } |
|
225 | 228 | ||
226 | 229 | // When header parsed, we must save the position of start for body, |
Files | Coverage |
---|---|
trunk | 58.59% |
Project Totals (133 files) | 58.59% |