Skip to content

Commit

Permalink
[XrdHttpTPC] PULL: Initialize the boolean for the opaque separator to…
Browse files Browse the repository at this point in the history
… be set properly

This issue was discovered when a HTTP TPC PULL from a non-xrootd server was happening. The oss.asize
attribute was put after a '&' instead of a '?'
  • Loading branch information
ccaffy authored and esindril committed Dec 14, 2022
1 parent d7f8b84 commit 0f79a38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/XrdTpc/XrdTpcTPC.cc
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,7 @@ int TPCHandler::ProcessPullReq(const std::string &resource, XrdHttpExtReq &req)
}
}
rec.streams = streams;
bool hasSetOpaque;
bool hasSetOpaque = false;
std::string full_url = prepareURL(req, hasSetOpaque);
std::string authz = GetAuthz(req);
curl_easy_setopt(curl, CURLOPT_URL, resource.c_str());
Expand Down

0 comments on commit 0f79a38

Please sign in to comment.