Something wrong with header parsing in net response
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
net-cpp |
Fix Released
|
Undecided
|
Gary.Wang |
Bug Description
When implementing ondrive.copy API, the value of the location header provides a URL for a service that will return the current state of the copy operation.E.g
"
HTTP/1.1 202 Accepted
Location: https:/
"
Querying the header's value via the following code
response.
for (const auto& v: values) {
}
});
The results as following:
"
key: Content-Length: 0
value: Content-Length
key: Location: https:/
value: Location
"
The key field matches entire header string.
The value filed returns wrong result too.
Related branches
- Thomas Voß (community): Approve
- James Henstridge: Approve
-
Diff: 86 lines (+44/-2)4 files modifiedCMakeLists.txt (+1/-1)
debian/changelog (+8/-0)
src/core/net/http/impl/curl/request.h (+1/-1)
tests/http_client_test.cpp (+34/-0)
Changed in net-cpp: | |
assignee: | nobody → Gary.Wang (gary-wzl77) |
status: | New → In Progress |
Changed in net-cpp: | |
status: | In Progress → Fix Released |