CapPaste: check the contents in can_post

For pastealacon, it is used to check for encoding compatibility.
This commit is contained in:
Laurent Bachelier 2011-05-04 23:50:58 +02:00
commit 0d2148bd84
6 changed files with 32 additions and 22 deletions

View file

@ -91,7 +91,7 @@ class Pastoob(ReplApplication):
params = self._get_params()
backends = {}
for backend in self.weboob.iter_backends():
score = backend.can_post(**params)
score = backend.can_post(contents, **params)
if score:
backends.setdefault(score, []).append(backend)
# select a random backend from the best scores