Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[XrdHTTP] Implement RFC3230 for providing resource digest #769

Merged
merged 8 commits into from
Jul 26, 2018
6 changes: 2 additions & 4 deletions src/XrdXrootd/XrdXrootdXeq.cc
Original file line number Diff line number Diff line change
Expand Up @@ -432,13 +432,11 @@ int XrdXrootdProtocol::do_CKsum(char *algT, const char *Path, char *Opaque)

// Diagnose any hard errors
//
if (rc && (myError.getErrInfo() != ENOTSUP)) {
return fsError(rc, 0, myError, Path, Opaque);
}
if (rc) return fsError(rc, 0, myError, Path, Opaque);

// Return result if it is actually available
//
if (!rc && *csData)
if (*csData)
{if (*csData == '!') return Response.Send(csData+1);
struct iovec iov[4] = {{0,0}, {algT, (size_t)CKTLen}, {&Space, 1},
{(char *)csData, strlen(csData)+1}};
Expand Down