Skip to content

Commit 6cba3f5

Browse files
committed
tweak hex escape
1 parent 1174d74 commit 6cba3f5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ngx_postgres_output.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,9 +213,12 @@ ngx_postgres_output_hex(ngx_http_request_t *r, PGresult *res)
213213
if (value[start] == 'x')
214214
start++;
215215

216+
fprintf(stdout, "GGOSGJKOSJGIJSDG [%d] [%d] [%.*s]\n", start, size, 10, value);
217+
216218
int i = 0;
219+
char *first = value[start];
217220
for (; start < size; start += 2)
218-
*(b->last++) = hex2bin(value + start);
221+
*b->last++ = hex2bin(value + start);
219222
//if (b->last != b->end) {
220223
// dd("returning NGX_ERROR");
221224
// return NGX_ERROR;

0 commit comments

Comments
 (0)