File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,8 @@ class Curl
83
83
84
84
private static $ deferredProperties = array (
85
85
'effectiveUrl ' ,
86
+ 'rfc2616 ' ,
87
+ 'rfc6265 ' ,
86
88
'totalTime ' ,
87
89
);
88
90
@@ -110,8 +112,6 @@ public function __construct($base_url = null)
110
112
$ this ->setOpt (CURLOPT_RETURNTRANSFER , true );
111
113
$ this ->headers = new CaseInsensitiveArray ();
112
114
$ this ->setUrl ($ base_url );
113
- $ this ->rfc2616 = array_fill_keys (self ::$ RFC2616 , true );
114
- $ this ->rfc6265 = array_fill_keys (self ::$ RFC6265 , true );
115
115
}
116
116
117
117
/**
@@ -1184,6 +1184,26 @@ private function __get_effectiveUrl()
1184
1184
return $ this ->getInfo (CURLINFO_EFFECTIVE_URL );
1185
1185
}
1186
1186
1187
+ /**
1188
+ * Get RFC 2616
1189
+ *
1190
+ * @access private
1191
+ */
1192
+ private function __get_rfc2616 ()
1193
+ {
1194
+ return array_fill_keys (self ::$ RFC2616 , true );
1195
+ }
1196
+
1197
+ /**
1198
+ * Get RFC 6265
1199
+ *
1200
+ * @access private
1201
+ */
1202
+ private function __get_rfc6265 ()
1203
+ {
1204
+ return array_fill_keys (self ::$ RFC6265 , true );
1205
+ }
1206
+
1187
1207
/**
1188
1208
* Get Total Time
1189
1209
*
You can’t perform that action at this time.
0 commit comments