Skip to content

Commit

Permalink
chore: make send_stream_request more clear (#8627)
Browse files Browse the repository at this point in the history
  • Loading branch information
ronething authored Jan 12, 2023
1 parent 9e3fd00 commit daa5f70
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions t/discovery/stream/eureka.t
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ add_block_preprocessor(sub {
my ($block) = @_;

if (!$block->stream_request) {
# GET /eureka/apps/APISIX-EUREKA HTTP/1.1\r\nHost: 127.0.0.1:1985\r\nConnection: close\r\n\r\n
$block->set_value("stream_request", "\x47\x45\x54\x20\x2f\x65\x75\x72\x65\x6b\x61\x2f\x61\x70\x70\x73\x2f\x41\x50\x49\x53\x49\x58\x2d\x45\x55\x52\x45\x4b\x41\x20\x48\x54\x54\x50\x2f\x31\x2e\x31\x0d\x0a\x48\x6f\x73\x74\x3a\x20\x31\x32\x37\x2e\x30\x2e\x30\x2e\x31\x3a\x31\x39\x38\x35\x0d\x0a\x43\x6f\x6e\x6e\x65\x63\x74\x69\x6f\x6e\x3a\x20\x63\x6c\x6f\x73\x65\x0d\x0a\x0d\x0a");
$block->set_value("stream_request", "GET /eureka/apps/APISIX-EUREKA HTTP/1.1\r\nHost: 127.0.0.1:1985\r\nConnection: close\r\n\r\n");
}

});
Expand Down

0 comments on commit daa5f70

Please sign in to comment.