summaryrefslogtreecommitdiff
path: root/Services/ProtocolServer/GeminiProtocol.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-05-21 12:27:42 +0200
committerAndreas Kling <kling@serenityos.org>2020-05-21 12:27:42 +0200
commit897998017af64a641ddbd82e5d12d08f6bcc2aea (patch)
tree9dd276bcea06850b4d693083abdaf1184ccbb7db /Services/ProtocolServer/GeminiProtocol.cpp
parent25cfdf3f6790ce9b7650e2a54adf1552826c7a0d (diff)
downloadserenity-897998017af64a641ddbd82e5d12d08f6bcc2aea.zip
ProtocolServer: Support request headers
You can now pass a dictionary of request headers when starting a new download in ProtocolServer. The HTTP and HTTPS protocol will include the headers in their requests.
Diffstat (limited to 'Services/ProtocolServer/GeminiProtocol.cpp')
-rw-r--r--Services/ProtocolServer/GeminiProtocol.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Services/ProtocolServer/GeminiProtocol.cpp b/Services/ProtocolServer/GeminiProtocol.cpp
index 956633b177..9bc61d54aa 100644
--- a/Services/ProtocolServer/GeminiProtocol.cpp
+++ b/Services/ProtocolServer/GeminiProtocol.cpp
@@ -40,7 +40,7 @@ GeminiProtocol::~GeminiProtocol()
{
}
-OwnPtr<Download> GeminiProtocol::start_download(ClientConnection& client, const URL& url)
+OwnPtr<Download> GeminiProtocol::start_download(ClientConnection& client, const URL& url, const HashMap<String, String>&)
{
Gemini::GeminiRequest request;
request.set_url(url);