diff options
author | Florian Pritz <bluewind@xinu.at> | 2015-09-14 18:58:15 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-09-14 18:58:15 +0200 |
commit | 9b0c69bcd3d05e3097ec4197ba7ef8f3a350a45d (patch) | |
tree | 886cd38ff992c3da7e23de2105baffa218129898 | |
parent | d535dc8846831ea0d74ef96423aa9fd90fbfc6f3 (diff) |
fb.py: Use correct config field for max request size
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rwxr-xr-x | fb.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -91,7 +91,7 @@ class CURLWrapper: if filesize > self.serverConfig["upload_max_size"]: raise APIException("File too big") - if self.serverConfig is not None and (currentChunkSize + filesize > self.serverConfig["upload_max_size"] \ + if self.serverConfig is not None and (currentChunkSize + filesize > self.serverConfig["request_max_size"] \ or len(chunks[currentChunk]) >= self.serverConfig["max_files_per_request"]): currentChunkSize = 0 currentChunk += 1 @@ -337,7 +337,7 @@ class FBClient: def parseConfig(self, file): c = ConfigParser(file) self.config = c.get_config() - self.config["api_url"] = self.config["pastebin"]+"/api/v1.1.0" + self.config["api_url"] = self.config["pastebin"]+"/api/v2.0.0" self.config["warnsize"] = 10*1024*1024 self.config["min_files_per_request_default"] = 5 self.config["min_variables_per_request_default"] = 20 |