diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2014-11-21 12:44:30 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2014-11-21 12:44:30 +0100 |
commit | 988cab73c68c9b8b20068de14943f35c726e956e (patch) | |
tree | 843933d617f3798afd439734203aa41a23d7badd /.local/share/libquvi-scripts | |
parent | c5f1a0358da5f6dab1be662630c135b88f26bc36 (diff) | |
download | dotfiles-988cab73c68c9b8b20068de14943f35c726e956e.tar.gz dotfiles-988cab73c68c9b8b20068de14943f35c726e956e.tar.bz2 dotfiles-988cab73c68c9b8b20068de14943f35c726e956e.zip |
quvi/soup: Add referer header to post requests
Diffstat (limited to '.local/share/libquvi-scripts')
-rw-r--r-- | .local/share/libquvi-scripts/common/soup_request.lua | 1 |
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) |