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:
Uli Heilmeier 2017-03-22 20:05:51 +01:00 committed by Michael Mann
parent a83496452a
commit fa25f19ae4
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}
/*