diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-11-12 00:14:05 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-11-12 01:29:54 +0100 |
| commit | 9ac68fd76c43523ea3aa3bcc4f9fef0ac2cee830 (patch) | |
| tree | 066cec43512bfd3234b30b403b20c55c1336508a /include | |
| parent | 957ac188e57cbb16db183fbd0fc87b09fea8e20c (diff) | |
http: Make http_decode_url return int
So far, it was not possible callers to distinguish between decoding
errors, as caused by ill-formed input, from fatal errors.
Diffstat (limited to 'include')
| -rw-r--r-- | include/libweb/http.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libweb/http.h b/include/libweb/http.h index 68ffb9a..80030fb 100644 --- a/include/libweb/http.h +++ b/include/libweb/http.h @@ -105,6 +105,6 @@ int http_response_add_header(struct http_response *r, const char *header, const char *value); char *http_cookie_create(const char *key, const char *value); char *http_encode_url(const char *url); -char *http_decode_url(const char *url, bool spaces); +int http_decode_url(const char *url, bool spaces, char **out); #endif /* HTTP_H */ |
