Commit 147872fe authored by Max Kellermann's avatar Max Kellermann

lib/curl/Easy: add curl_easy_escape() wrapper

parent 38edb580
/*
* Copyright (C) 2016 Max Kellermann <max.kellermann@gmail.com>
* Copyright (C) 2016-2018 Max Kellermann <max.kellermann@gmail.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
......@@ -86,6 +86,10 @@ public:
if (code != CURLE_OK)
throw std::runtime_error(curl_easy_strerror(code));
}
char *Escape(const char *string, int length=0) const noexcept {
return curl_easy_escape(handle, string, length);
}
};
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment