Skip to content

Commit 0b871cf

Browse files
author
Phil Sturgeon
committed
Merge pull request chriskacerguis#123 from sekati/master
Log Table support for IPv6 & NULL parameters
2 parents bb38c1c + 7c03193 commit 0b871cf

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

application/config/rest.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@
5858
|
5959
| Set as many config entries as needed. Any methods not set will use the default 'rest_auth' config value.
6060
|
61-
| example:
62-
|
61+
| example:
62+
|
6363
| $config['auth_override_class_method']['deals']['view'] = 'none';
6464
| $config['auth_override_class_method']['deals']['insert'] = 'digest';
65-
| $config['auth_override_class_method']['accounts']['user'] = 'basic';
65+
| $config['auth_override_class_method']['accounts']['user'] = 'basic';
6666
|
6767
| Here 'deals' and 'accounts' are controller names, 'view', 'insert' and 'user' are methods within. (NOTE: leave off the '_get' or '_post' from the end of the method name)
68-
| Acceptable values are; 'none', 'digest' and 'basic'.
68+
| Acceptable values are; 'none', 'digest' and 'basic'.
6969
|
7070
*/
7171
// $config['auth_override_class_method']['deals']['view'] = 'none';
@@ -215,9 +215,9 @@
215215
`id` int(11) NOT NULL AUTO_INCREMENT,
216216
`uri` varchar(255) NOT NULL,
217217
`method` varchar(6) NOT NULL,
218-
`params` text NOT NULL,
218+
`params` text DEFAULT NULL,
219219
`api_key` varchar(40) NOT NULL,
220-
`ip_address` varchar(15) NOT NULL,
220+
`ip_address` varchar(45) NOT NULL,
221221
`time` int(11) NOT NULL,
222222
`authorized` tinyint(1) NOT NULL,
223223
PRIMARY KEY (`id`)
@@ -279,10 +279,10 @@
279279
| REST AJAX Only
280280
|--------------------------------------------------------------------------
281281
|
282-
| Set to TRUE to only allow AJAX requests. If TRUE and the request is not
283-
| coming from AJAX, a 505 response with the error message "Only AJAX
284-
| requests are accepted." will be returned. This is good for production
285-
| environments. Set to FALSE to also accept HTTP requests.
282+
| Set to TRUE to only allow AJAX requests. If TRUE and the request is not
283+
| coming from AJAX, a 505 response with the error message "Only AJAX
284+
| requests are accepted." will be returned. This is good for production
285+
| environments. Set to FALSE to also accept HTTP requests.
286286
|
287287
| FALSE
288288
|

0 commit comments

Comments
 (0)