Skip to content

Commit

Permalink
S3: fix compilation errors due to missing std:: for map,string
Browse files Browse the repository at this point in the history
  • Loading branch information
apeters1971 committed May 23, 2024
1 parent c2c8c06 commit 668ee58
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/XrdS3/XrdS3Req.cc
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ int XrdS3Req::S3ErrorResponse(S3Error err) {
return S3ErrorResponse(err, "", "", false);
}

int XrdS3Req::S3ErrorResponse(S3Error err, const string &ressource,
const string &request_id, bool chunked) {
int XrdS3Req::S3ErrorResponse(S3Error err, const std::string &ressource,
const std::string &request_id, bool chunked) {
S3Xml printer;
S3ErrorCode error_code;

Expand Down Expand Up @@ -288,15 +288,15 @@ std::string MergeHeaders(const std::map<std::string, std::string> &headers) {
return res.substr(0, res.empty() ? 0 : res.length() - 2);
}

int XrdS3Req::S3Response(int code, const map<std::string, std::string> &headers,
const string &body) {
int XrdS3Req::S3Response(int code, const std::map<std::string, std::string> &headers,
const std::string &body) {
std::string headers_str = MergeHeaders(headers);

return SendSimpleResp(code, nullptr, headers_str.c_str(), body.c_str(),
body.size());
}

int XrdS3Req::S3Response(int code, const map<std::string, std::string> &headers,
int XrdS3Req::S3Response(int code, const std::map<std::string, std::string> &headers,
const char *body, long long size) {
std::string headers_str = MergeHeaders(headers);

Expand Down

0 comments on commit 668ee58

Please sign in to comment.