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

Commit

Permalink
Fix geoip extraction from HTTP header (bug 946808)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbasta committed Dec 5, 2013
1 parent c93a89d commit e2a4680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hearth/media/js/marketplace.js
Expand Up @@ -187,7 +187,7 @@ function(_) {
require('requests').on('success', function(_, xhr, type, url) {
var filter_header;
try {
if (filter_header = xhr.getResponseHeader('API-Filter') &&
if ((filter_header = xhr.getResponseHeader('API-Filter')) &&
url.indexOf('region=') === -1) {
var region = require('utils').getVars(filter_header).region;
log.persistent('mobilenetwork', 'change').log('API overriding region:', region);
Expand Down

0 comments on commit e2a4680

Please sign in to comment.