summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2014-11-21 12:44:30 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2014-11-21 12:44:30 +0100
commit988cab73c68c9b8b20068de14943f35c726e956e (patch)
tree843933d617f3798afd439734203aa41a23d7badd
parentc5f1a0358da5f6dab1be662630c135b88f26bc36 (diff)
downloaddotfiles-988cab73c68c9b8b20068de14943f35c726e956e.tar.gz
dotfiles-988cab73c68c9b8b20068de14943f35c726e956e.tar.bz2
dotfiles-988cab73c68c9b8b20068de14943f35c726e956e.zip
quvi/soup: Add referer header to post requests
-rw-r--r--.local/share/libquvi-scripts/common/soup_request.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/.local/share/libquvi-scripts/common/soup_request.lua b/.local/share/libquvi-scripts/common/soup_request.lua
index 28d4e74..09cecc1 100644
--- a/.local/share/libquvi-scripts/common/soup_request.lua
+++ b/.local/share/libquvi-scripts/common/soup_request.lua
@@ -25,6 +25,7 @@ function M.request(url, method, params)
if method == "POST" then
req:get_message():set_request("application/x-www-form-urlencoded", 0, p, #p)
+ req:get_message().request_headers:append('Referer', url)
end
function read(stream)