Minor update

This commit is contained in:
Miroslav Stampar
2012-10-30 10:30:22 +01:00
parent 7c7aff12c6
commit 5cfc066ac4
2 changed files with 9 additions and 11 deletions

View File

@@ -1164,7 +1164,7 @@ def __setHTTPUserAgent():
for count in xrange(len(items)):
item = items[count]
message += "[%d] %s%s\n" % (count + 1, item[:item.find(';')], " (default)" if item == MOBILES.IPHONE else "")
message += "[%d] %s%s\n" % (count + 1, item[0], " (default)" if item == MOBILES.IPHONE else "")
test = readInput(message.rstrip('\n'), default=items.index(MOBILES.IPHONE) + 1)
@@ -1173,9 +1173,7 @@ def __setHTTPUserAgent():
except:
item = MOBILES.IPHONE
item = item[item.find(';') + 1:]
conf.httpHeaders.append((HTTPHEADER.USER_AGENT, item))
conf.httpHeaders.append((HTTPHEADER.USER_AGENT, item[1]))
elif conf.agent:
debugMsg = "setting the HTTP User-Agent header"