Skip to content
Snippets Groups Projects
Commit 3c801bcf authored by Daniele Kruse's avatar Daniele Kruse
Browse files

Fixed a comment and fixed a bug in the frontend response formatting

parent e0dd076e
No related branches found
No related tags found
No related merge requests found
......@@ -53,14 +53,8 @@ void replaceAll(std::string& str, const std::string& from, const std::string& to
}
/**
* Encodes a string in base 64 and replaces slatches ('/') in the result
* Encodes a string in base 64 and replaces slashes ('/') in the result
* with underscores ('_').
*
* Need to replace slashes ('/') with underscores ('_') because xroot removes
* consecutive slashes, and the cryptopp base64 algorithm may produce
* consecutive slashes. This is solved in cryptopp-5.6.3 (using
* Base64URLEncoder instead of Base64Encoder) but we currently have
* cryptopp-5.6.2. To be changed in the future...
*
* @param msg string to encode
* @return encoded string
......
This diff is collapsed.
......@@ -170,7 +170,7 @@ protected:
* @param responseTable The response 2-D matrix
* @return the response string properly formatted in a table
*/
std::string formatResponse(const std::vector<std::vector<std::string>> &responseTable);
std::string formatResponse(const std::vector<std::vector<std::string>> &responseTable, const bool withHeader);
/**
* Returns a string representation of the time
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment