diff options
author | Robert Pösel <robyer@seznam.cz> | 2015-02-17 16:17:08 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2015-02-17 16:17:08 +0000 |
commit | 1144c13b3ced478e35f5e56ba0564887eacf54f9 (patch) | |
tree | 216194453ad8bf2d88cf69253da42510c7f7dd0a /protocols/FacebookRM/src/http.h | |
parent | 0fabeec3192ad9d346b7dadfb35b38d2866f14c7 (diff) |
Facebook: Completely remove option to use https and always use it; version bump
git-svn-id: http://svn.miranda-ng.org/main/trunk@12165 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/http.h')
-rw-r--r-- | protocols/FacebookRM/src/http.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/protocols/FacebookRM/src/http.h b/protocols/FacebookRM/src/http.h index 0aac1c7df0..943ebb1a56 100644 --- a/protocols/FacebookRM/src/http.h +++ b/protocols/FacebookRM/src/http.h @@ -3,7 +3,7 @@ Facebook plugin for Miranda Instant Messenger
_____________________________________________
-Copyright © 2009-11 Michal Zelinka, 2011-15 Robert Pösel
+Copyright � 2009-11 Michal Zelinka, 2011-15 Robert P�sel
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -22,7 +22,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #pragma once
-#define HTTP_PROTO_REGULAR "http://"
#define HTTP_PROTO_SECURE "https://"
#define HTTP_CODE_CONTINUE 100
@@ -85,23 +84,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. namespace http
{
- enum method
- {
- get,
- post
- };
-
struct response
{
response() : code(0), error_number(0) {}
+
int code;
- std::map< std::string, std::string > headers;
+ std::map<std::string, std::string> headers;
std::string data;
// Facebook's error data
unsigned int error_number;
- std::string error_text;
std::string error_title;
+ std::string error_text;
bool isValid() {
return (code == HTTP_CODE_OK && error_number == 0);
|