Thrift: Register for media-type application/x-thrift
Thrift streams can be transported over http (or https). application/x-thrift is not official assigned but still in use (s. https://issues.apache.org/jira/browse/THRIFT-3250). Change-Id: I42e34b55da023b09bfef4658c89b1941ef4e574b Reviewed-on: https://code.wireshark.org/review/20674 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
parent
a83496452a
commit
fa25f19ae4
|
@ -505,8 +505,11 @@ void proto_register_thrift(void) {
|
|||
}
|
||||
|
||||
void proto_reg_handoff_thrift(void) {
|
||||
static dissector_handle_t thrift_http_handle;
|
||||
|
||||
heur_dissector_add("tcp", dissect_thrift_heur, "Thrift over TCP", "thrift_tcp", proto_thrift, HEURISTIC_ENABLE);
|
||||
thrift_http_handle = create_dissector_handle(dissect_thrift_heur, proto_thrift);
|
||||
dissector_add_string("media_type", "application/x-thrift", thrift_http_handle);
|
||||
|
||||
}
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue