]> granicus.if.org Git - libevent/commitdiff
Fix incorrect ref to evhttp_get_decoded_uri in http.h
authorejurgensen <espenjurgensen@gmail.com>
Sun, 5 Nov 2017 11:18:49 +0000 (12:18 +0100)
committerejurgensen <espenjurgensen@gmail.com>
Sun, 5 Nov 2017 11:18:49 +0000 (12:18 +0100)
Replaces reference in the http.h include header file to evhttp_get_decoded_uri
with evhttp_uridecode. There is no function called evhttp_get_decoded_uri.

include/event2/http.h

index acee552082e430417ba5b8261254b87a2ffc2fa0..2a41303ede0e3cd66fd7fb00185b725f95cbde59 100644 (file)
@@ -930,14 +930,14 @@ char *evhttp_uriencode(const char *str, ev_ssize_t size, int space_to_plus);
 
 /**
   Helper function to sort of decode a URI-encoded string.  Unlike
-  evhttp_get_decoded_uri, it decodes all plus characters that appear
+  evhttp_uridecode, it decodes all plus characters that appear
   _after_ the first question mark character, but no plusses that occur
   before.  This is not a good way to decode URIs in whole or in part.
 
   The returned string must be freed by the caller
 
   @deprecated  This function is deprecated; you probably want to use
-     evhttp_get_decoded_uri instead.
+     evhttp_uridecode instead.
 
   @param uri an encoded URI
   @return a newly allocated unencoded URI or NULL on failure