mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-28 05:04:16 -05:00
[artwork/http] Check response code and content type
Extends the http_client_ctx to hold the response code for a request. Also adds the content type header, if it was a https request (using libcurl instead of libevent)
This commit is contained in:
@@ -29,6 +29,9 @@ struct http_client_ctx
|
||||
*/
|
||||
int headers_only;
|
||||
|
||||
/* HTTP Response code */
|
||||
int response_code;
|
||||
|
||||
/* Private */
|
||||
int ret;
|
||||
void *evbase;
|
||||
|
||||
Reference in New Issue
Block a user