Skip to content
This repository has been archived by the owner on Nov 26, 2018. It is now read-only.

Commit

Permalink
Dummy User-Agent to appease Firefox and get t.co working.
Browse files Browse the repository at this point in the history
It looks like Firefox will allow me to replace the User-Agent string,
but not for it to be empty. Twitter will offer a 301 Redirect (the
wanted result) to any random string.
  • Loading branch information
Zegnat committed Sep 24, 2016
1 parent cb21b4a commit 51d45f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function fetchNext (urls, respond, data) {
let url = urls.shift()
window.fetch(url, {
method: 'HEAD',
headers: new Headers({ 'User-Agent': '' })
headers: new Headers({ 'User-Agent': 'verify-me-locally' })
}).then(function (response) {
if (response.url === data.to) {
respond({status: 'verified', index: data.index})
Expand Down

0 comments on commit 51d45f6

Please sign in to comment.