diff src/core/http.cc @ 100:f5940a575d83

track/constants: add many more video formats
author Paper <mrpapersonic@gmail.com>
date Fri, 03 Nov 2023 09:43:04 -0400
parents 9b2b41f83a5e
children 9b10175be389
line wrap: on
line diff
--- a/src/core/http.cc	Fri Nov 03 09:00:46 2023 -0400
+++ b/src/core/http.cc	Fri Nov 03 09:43:04 2023 -0400
@@ -13,7 +13,7 @@
 	return size * nmemb;
 }
 
-QByteArray Get(std::string url, std::vector<std::string> headers) {
+QByteArray Get(const std::string& url, const std::vector<std::string>& headers) {
 	struct curl_slist* list = NULL;
 	QByteArray userdata;
 
@@ -40,7 +40,7 @@
 	return userdata;
 }
 
-QByteArray Post(std::string url, std::string data, std::vector<std::string> headers) {
+QByteArray Post(const std::string& url, const std::string& data, const std::vector<std::string>& headers) {
 	struct curl_slist* list = NULL;
 	QByteArray userdata;