comparison proxy_upgrade.t @ 368:fc6b8270469c

Tests: fixed typos.
author Sergey Kandaurov <pluknet@nginx.com>
date Mon, 20 Jan 2014 21:09:58 +0400
parents e7dc8f4d0a4b
children 5276aceb32a6
comparison
equal deleted inserted replaced
367:0726521e42f3 368:fc6b8270469c
2 2
3 # (C) Maxim Dounin 3 # (C) Maxim Dounin
4 4
5 # Tests for http proxy upgrade support. In contrast to proxy_websocket.t 5 # Tests for http proxy upgrade support. In contrast to proxy_websocket.t
6 # this test doesn't try to use binary WebSocket protocol, but uses simple 6 # this test doesn't try to use binary WebSocket protocol, but uses simple
7 # plain text protol instead. 7 # plain text protocol instead.
8 8
9 ############################################################################### 9 ###############################################################################
10 10
11 use warnings; 11 use warnings;
12 use strict; 12 use strict;
134 # send request, $h->to_string 134 # send request, $h->to_string
135 135
136 my $buf = "GET / HTTP/1.1" . CRLF 136 my $buf = "GET / HTTP/1.1" . CRLF
137 . "Host: localhost" . CRLF 137 . "Host: localhost" . CRLF
138 . ($opts{noheader} ? '' : "Upgrade: foo" . CRLF) 138 . ($opts{noheader} ? '' : "Upgrade: foo" . CRLF)
139 . "Connection: Upgade" . CRLF . CRLF; 139 . "Connection: Upgrade" . CRLF . CRLF;
140 140
141 $buf .= $opts{message} . CRLF if defined $opts{message}; 141 $buf .= $opts{message} . CRLF if defined $opts{message};
142 142
143 local $SIG{PIPE} = 'IGNORE'; 143 local $SIG{PIPE} = 'IGNORE';
144 144