Skip to content

Commit

Permalink
Send referer header to google. (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
danrmiller committed Jul 5, 2024
1 parent 17bd836 commit b63bc8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions services/discourse_translator/google.rb
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ def self.result(url, body)
body: URI.encode_www_form(body),
headers: {
"Content-Type" => "application/x-www-form-urlencoded",
"Referer" => Discourse.base_url,
},
)

Expand Down

0 comments on commit b63bc8a

Please sign in to comment.