Skip to content

Commit

Permalink
Fix incorrect ref to evhttp_get_decoded_uri in http.h
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ejurgensen committed Nov 5, 2017
1 parent 306747e commit b49c70c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/event2/http.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b49c70c

Please sign in to comment.