ossrs / srs
Showing 1 of 3 files from the diff.

@@ -76,6 +76,8 @@
Loading
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,7 +222,8 @@
Loading
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%
Untitled

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading