Mercurial > hg > nginx-tests
comparison rewrite_unescape.t @ 595:6cdfd177319b
Tests: fixed typos and misspellings.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 28 May 2015 15:13:55 +0300 |
parents | 6a0d934950bc |
children | e36b267021e3 |
comparison
equal
deleted
inserted
replaced
594:8dd5cf697eae | 595:6cdfd177319b |
---|---|
70 | 70 |
71 $t->run(); | 71 $t->run(); |
72 | 72 |
73 ############################################################################### | 73 ############################################################################### |
74 | 74 |
75 # Some rewrites and expected (?) behaviour | 75 # Some rewrites and expected (?) behavior |
76 # | 76 # |
77 # /t1?r=http%3A%2F%2Fexample.com%2F%3Ffrom | 77 # /t1?r=http%3A%2F%2Fexample.com%2F%3Ffrom |
78 # rewrite ^ $arg_r? redirect; | 78 # rewrite ^ $arg_r? redirect; |
79 # expected: http://example.com/?from | 79 # expected: http://example.com/?from |
80 # got: http://example.com/?from | 80 # got: http://example.com/?from |
117 'http://example.com%0D%0Asplit', 'escaped argument header splitting'); | 117 'http://example.com%0D%0Asplit', 'escaped argument header splitting'); |
118 | 118 |
119 TODO: { | 119 TODO: { |
120 local $TODO = 'not yet'; | 120 local $TODO = 'not yet'; |
121 | 121 |
122 # Fixing this cases will require major changes to the whole aproach and | 122 # Fixing this cases will require major changes to the whole approach and |
123 # likely to break some currently working cases. On the other hand, current | 123 # likely to break some currently working cases. On the other hand, current |
124 # behaviour is far from acceptable. Should be carefully thought. | 124 # behavior is far from acceptable. Should be carefully thought. |
125 | 125 |
126 location('/t1?r=http%3A%2F%2Fexample.com%2F%3Ffrom%3Dblah', | 126 location('/t1?r=http%3A%2F%2Fexample.com%2F%3Ffrom%3Dblah', |
127 'http://example.com/?from=blah', 'escaped argument with complex query'); | 127 'http://example.com/?from=blah', 'escaped argument with complex query'); |
128 | 128 |
129 location('/t2/blah%20%3Fblah', | 129 location('/t2/blah%20%3Fblah', |