Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/ChangeLog b/ChangeLog
- index d8898c8..391cf8b 100644
- --- a/ChangeLog
- +++ b/ChangeLog
- @@ -1,3 +1,8 @@
- +2009-01-05 Gabriel Falc�o <gabriel@ananda.vrindavan>
- +
- + * src/downloader.vala: Removing an unsatisfactory object handling
- + in the constructor of HttpBackend.
- +
- 2009-01-04 Gabriel Falc�o <gabriel@ananda.vrindavan>
- * Now the project is called Ainur!
- diff --git a/src/downloader.vala b/src/downloader.vala
- index 9cf2c31..7f63cc5 100644
- --- a/src/downloader.vala
- +++ b/src/downloader.vala
- @@ -86,28 +86,26 @@ namespace Ainur {
- public string username;
- public string password;
- public HashMap<string, string> other_credentials;
- - public SessionSync session;
- + private SessionSync session;
- public HttpBackend (string username,
- string password,
- bool connect_now=false,
- - HashMap? other_credentials=null)
- + HashMap other_credentials=new_hash())
- {
- + this.headers = new_hash();
- + this.body = new_hash();
- + this.session = new SessionSync();
- +
- this.username = username;
- this.password = password;
- this.is_connected = false;
- - this.other_credentials = other_credentials == null ? new_hash() : other_credentials;
- - this.session = new SessionSync();
- - this.headers = new_hash();
- - this.body = new_hash();
- + this.other_credentials = other_credentials;
- +
- if (connect_now == true)
- this.connect();
- }
- - ~HttpBackend () {
- - this.disconnect();
- - }
- -
- private void handle_cookies (Message msg) {
- string cookies;
- cookies = msg.response_headers.get("set-cookie");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement