Ticket #781 (closed enhancement: fixed)

Opened 2 years ago

Last modified 2 years ago

[PATCH] Support HTTP HEAD method in protocol-http

Reported by: matthijs Owned by: lennart
Milestone: 0.9.22 Component: core
Keywords: Cc: matthijs@…

Description

Currently, the protocol-http modules only support the GET method. However, in UPnP media streaming, it is comming for the HEAD method to be used. Unfortunately, this patch didn't solve my problems with my Bravia TV, but it should add proper support for the HEAD method.

There is one thing that I am still unsure of: the handle_listen_prefix function calls connection_unlink when a HEAD request is being processed, but I'm not 100% sure that that is correct and sufficient cleanup.

Patch is against 0.9.21, but it should apply to git master as well (not tested, but there has been only one small change to this file).

Attachments

http-head.patch (2.8 kB) - added by matthijs 2 years ago.
Patch against 0.9.21

Change History

Changed 2 years ago by matthijs

Patch against 0.9.21

Changed 2 years ago by lennart

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 0.9.22

Merged!

Thanks for the patch.

Note: See TracTickets for help on using tickets.