Skip to content

Commit 1a62080

Browse files
committed
#120 fixed & add tests. Update (C) dates.
1 parent 27836e4 commit 1a62080

13 files changed

+50
-14
lines changed

src/debug.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2828
* SUCH DAMAGE.
2929
*
30-
* Copyright (C) 2015-2018 Tarantool AUTHORS:
30+
* Copyright (C) 2015-2019 Tarantool AUTHORS:
3131
* please see AUTHORS file.
3232
*/
3333

src/json_encoders.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2828
* SUCH DAMAGE.
2929
*
30-
* Copyright (C) 2016 - 2018 Tarantool AUTHORS:
30+
* Copyright (C) 2016-2019 Tarantool AUTHORS:
3131
* please see AUTHORS file.
3232
*/
3333

src/json_encoders.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2828
* SUCH DAMAGE.
2929
*
30-
* Copyright (C) 2016 - 2018 Tarantool AUTHORS:
30+
* Copyright (C) 2016-2019 Tarantool AUTHORS:
3131
* please see AUTHORS file.
3232
*/
3333

src/ngx_http_tnt_module.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@
2727
* THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2828
* SUCH DAMAGE.
2929
*
30-
* Copyright (C) 2015-2018 Tarantool AUTHORS:
30+
* Copyright (C) 2015-2019 Tarantool AUTHORS:
3131
* please see AUTHORS file.
3232
*/
3333

34-
3534
#include <ngx_core.h>
3635
#include <ngx_http.h>
3736
#include <ngx_config.h>
@@ -1616,7 +1615,7 @@ ngx_http_tnt_urldecode(ngx_http_request_t *r, ngx_str_t *src)
16161615

16171616
c = src->data[s++];
16181617

1619-
if (c == '%' && (ngx_uint_t) (s + 2) < src->len) {
1618+
if (c == '%' && (ngx_uint_t) (s + 2) <= src->len) {
16201619

16211620
u_char c2 = src->data[s++];
16221621
u_char c3 = src->data[s++];

src/ngx_http_tnt_version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@
2727
* THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2828
* SUCH DAMAGE.
2929
*
30-
* Copyright (C) 2015-2018 Tarantool AUTHORS:
30+
* Copyright (C) 2015-2019 Tarantool AUTHORS:
3131
* please see AUTHORS file.
3232
*/
3333

3434
#ifndef NGX_HTTP_TNT_VERSION_H
3535
#define NGX_HTTP_TNT_VERSION_H 1
3636

37-
#define NGX_HTTP_TNT_MODULE_VERSION_STRING "v2.7"
37+
#define NGX_HTTP_TNT_MODULE_VERSION_STRING "v2.7.1"
3838

3939
#endif

src/ngx_http_tnt_version.h.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2828
* SUCH DAMAGE.
2929
*
30-
* Copyright (C) 2015-2018 Tarantool AUTHORS:
30+
* Copyright (C) 2015-2019 Tarantool AUTHORS:
3131
* please see AUTHORS file.
3232
*/
3333

src/tp_ext.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2828
* SUCH DAMAGE.
2929
*
30-
* Copyright (C) 2015-2018 Tarantool AUTHORS:
30+
* Copyright (C) 2015-2019 Tarantool AUTHORS:
3131
* please see AUTHORS file.
3232
*/
3333

src/tp_transcode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2828
* SUCH DAMAGE.
2929
*
30-
* Copyright (C) 2015-2018 Tarantool AUTHORS:
30+
* Copyright (C) 2015-2019 Tarantool AUTHORS:
3131
* please see AUTHORS file.
3232
*/
3333

src/tp_transcode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2828
* SUCH DAMAGE.
2929
*
30-
* Copyright (C) 2015-2018 Tarantool AUTHORS:
30+
* Copyright (C) 2015-2019 Tarantool AUTHORS:
3131
* please see AUTHORS file.
3232
*/
3333

t/ngx_confs/tnt_server_test.conf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
12
http {
23

34
autoindex off;
4-
access_log off;
55

66
include mime.types;
77
default_type application/octet-stream;
@@ -455,5 +455,11 @@ http {
455455
}
456456
tnt_pass tnt;
457457
}
458+
location /issue_120 {
459+
tnt_pass_http_request on parse_args unescape;
460+
tnt_http_rest_methods all;
461+
tnt_http_methods all;
462+
tnt_pass tnt;
463+
}
458464
}
459465
}

0 commit comments

Comments
 (0)