diff --git a/src/views/Edit/Sources/Network.js b/src/views/Edit/Sources/Network.js
index 718e1ef..6d9188e 100644
--- a/src/views/Edit/Sources/Network.js
+++ b/src/views/Edit/Sources/Network.js
@@ -74,6 +74,7 @@ const initSettings = (initialSettings, config) => {
userAgent: '',
referer: '',
http_proxy: '',
+ headers: '',
...settings.http,
};
@@ -293,6 +294,15 @@ const createInputs = (settings, config, skills) => {
input.options.push('-referer', settings.http.referer);
}
+ if (settings.http.headers.length !== 0) {
+ let headers = settings.http.headers
+ .split('\n')
+ .map((l) => l.trim())
+ .filter((l) => l.length > 0)
+ .join('\r\n');
+ input.options.push('-headers', headers + '\r\n');
+ }
+
if (settings.http.http_proxy.length !== 0) {
input.options.push('-http_proxy', settings.http.http_proxy);
}
@@ -605,6 +615,19 @@ function AdvancedSettings({ settings = {}, onChange = function (settings) {} })
onChange={onChange('http', 'referer')}
/>
+
+
+
+ List of additional HTTP headers, one per line.
+
+