dont wrap data into Binary twice
This commit is contained in:
parent
8ba5b2097a
commit
8f826c4ac3
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ def _saveUrlCache(url, post_data, data, headers):
|
||||||
else:
|
else:
|
||||||
compressed = 0
|
compressed = 0
|
||||||
data = sqlite3.Binary(data)
|
data = sqlite3.Binary(data)
|
||||||
t = (url_hash, domain, url, post_data, json.dumps(headers), created, sqlite3.Binary(data), only_headers, compressed)
|
t = (url_hash, domain, url, post_data, json.dumps(headers), created, data, only_headers, compressed)
|
||||||
c.execute(u"""INSERT OR REPLACE INTO cache values (?, ?, ?, ?, ?, ?, ?, ?, ?)""", t)
|
c.execute(u"""INSERT OR REPLACE INTO cache values (?, ?, ?, ?, ?, ?, ?, ?, ?)""", t)
|
||||||
|
|
||||||
# Save (commit) the changes and clean up
|
# Save (commit) the changes and clean up
|
||||||
|
|
Loading…
Reference in a new issue