diff options
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);
|