Skip to content
Snippets Groups Projects
Commit 56256b42 authored by ale's avatar ale
Browse files

remove old toy url-encoding implementation

parent d94bb38f
No related branches found
No related tags found
No related merge requests found
......@@ -134,32 +134,6 @@ const char *auth_client_strerror(int err) {
}
}
static char *quote(const char *s) {
char *out = (char *)malloc(strlen(s) * 3 + 1), *optr;
for (optr = out; *s; s++) {
switch (*s) {
case ';':
case '/':
case '?':
case ':':
case '@':
case '&':
case '=':
case '+':
case '$':
case ',':
case '%':
sprintf(optr, "%%%02X", (int)(*s));
optr += 3;
break;
default:
*optr++ = *s;
}
}
*optr = '\0';
return out;
}
static size_t responsebuf_callback(void *contents, size_t size, size_t nmemb, void *userp) {
size_t realsize = size * nmemb;
struct cbuf *cbuf = (struct cbuf *)userp;
......
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