|
|
| version 1.15, 2017/02/07 22:00:28 | version 1.20, 2026/04/25 13:38:46 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: memcached class. | Parser: memcached class. |
| Copyright (c) 2001-2017 Art. Lebedev Studio (http://www.artlebedev.com) | Copyright (c) 2001-2026 Art. Lebedev Studio (https://www.artlebedev.com) |
| Authors: | Authors: |
| Ivan Poluyanov <ivan-poluyanov@yandex.ru> | Ivan Poluyanov <ivan-poluyanov@yandex.ru> |
| Artem Stepanov <timofei1394@thesecure.in> | Artem Stepanov <timofei1394@thesecure.in> |
| Line 37 static void _open(Request& r, MethodPara | Line 37 static void _open(Request& r, MethodPara |
| for(HashStringValue::Iterator i(*options); i; i.next()){ | for(HashStringValue::Iterator i(*options); i; i.next()){ |
| if(i.key() == "skip-connect"){ | if(i.key() == "skip-connect"){ |
| connect=!i.value()->as_bool(); | connect=!i.value()->as_bool(); |
| } else if(Value *b=i.value()->as("bool")){ | } else if(Value *b=dynamic_cast<VBool*>(i.value())){ |
| if(b->as_bool()) | if(b->as_bool()) |
| result << (result.is_empty() ? "--" : " --") << i.key(); | result << (result.is_empty() ? "--" : " --") << i.key(); |
| } else { | } else { |