Skip to content

Commit

Permalink
Make the server emit a NTRIP 2 header.
Browse files Browse the repository at this point in the history
  • Loading branch information
pbeyssac committed Aug 25, 2024
1 parent 6ab36bf commit f3e086f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion caster/ntrip_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ struct ntrip_state *ntrip_new(struct caster_state *caster, struct bufferevent *b
this->remote = 0;
this->last_send = time(NULL);
this->subscription = NULL;
this->server_version = 1;
this->server_version = 2;
this->client_version = 1;
this->source_virtual = 0;
this->source_on_demand = 0;
Expand Down
2 changes: 1 addition & 1 deletion tests/test-send-expect.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

tests = [
(b'GET /adm/ HTTP/1.1\nUser-Agent: NTRIP test\n\n',
b'^HTTP/1\.1 401 Unauthorized\r\nServer: NTRIP Millipede Server .*\r\nDate: .* GMT\r\nConnection: close\r\nWWW-Authenticate: Basic realm="/adm"\r\n\r\n401\r\n$'),
b'^HTTP/1\.1 401 Unauthorized\r\nServer: NTRIP Millipede Server .*\r\nDate: .* GMT\r\nNtrip-Version: Ntrip/2.0\r\nConnection: close\r\nWWW-Authenticate: Basic realm="/adm"\r\n\r\n401\r\n$'),
(b'GET /adm HTTP/1.1\nUser-Agent: NTRIP test\n\n',
b'^SOURCETABLE 200 OK\r\n'),
(b'POST /TEST1 HTTP/1.1\nUser-Agent: NTRIP test\nAuthorization: Basic dGVzdDE6dGVzdHB3IQ==\n\n',
Expand Down

0 comments on commit f3e086f

Please sign in to comment.