~ubuntu-branches/ubuntu/quantal/nginx/quantal-updates

« back to all changes in this revision

Viewing changes to debian/modules/nginx-lua/t/001-set.t

  • Committer: Package Import Robot
  • Author(s): Kartik Mistry, Kartik Mistry
  • Date: 2011-09-26 10:17:04 UTC
  • mfrom: (4.2.38 sid)
  • Revision ID: package-import@ubuntu.com-20110926101704-x8pxngiujrmkxnn3
Tags: 1.1.4-2
[Kartik Mistry]
* debian/modules:
  + Updated nginx-upload-progress module, Thanks to upstream for fixing issue
    that FTBFS nginx on kFreeBSD-* archs.
  + Updated nginx-lua module to latest upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
194
194
--- response_body_like: 500 Internal Server Error
195
195
--- error_code: 500
196
196
 
 
197
 
 
198
 
 
199
=== TEST 14: set $limit_rate (variables with set_handler)
 
200
--- config
 
201
    location /lua {
 
202
        set $limit_rate 1000;
 
203
        rewrite_by_lua '
 
204
            ngx.var.limit_rate = 180;
 
205
        ';
 
206
        echo "limit rate = $limit_rate";
 
207
    }
 
208
--- request
 
209
    GET /lua
 
210
--- response_body
 
211
limit rate = 180
 
212
 
 
213
 
 
214
 
 
215
=== TEST 15: set $args and read $query_string
 
216
--- config
 
217
    location /lua {
 
218
        set $args 'hello';
 
219
        rewrite_by_lua '
 
220
            ngx.var.args = "world";
 
221
        ';
 
222
        echo $query_string;
 
223
    }
 
224
--- request
 
225
    GET /lua
 
226
--- response_body
 
227
world
 
228
 
 
229
 
 
230
 
 
231
=== TEST 16: set $arg_xxx
 
232
--- config
 
233
    location /lua {
 
234
        rewrite_by_lua '
 
235
            ngx.var.arg_foo = "world";
 
236
        ';
 
237
        echo $arg_foo;
 
238
    }
 
239
--- request
 
240
    GET /lua?foo=3
 
241
--- response_body_like: 500 Internal Server Error
 
242
--- error_code: 500
 
243